class KeycloakAdmin::TokenRepresentation
Attributes
access_token[RW]
expires_in[RW]
id_token[RW]
not_before_policy[RW]
refresh_expires_in[RW]
refresh_token[RW]
session_state[RW]
token_type[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/keycloak-admin/representation/token_representation.rb, line 24 def self.from_hash(hash) new( hash["access_token"], hash["token_type"], hash["expires_in"], hash["refresh_token"], hash["refresh_expires_in"], hash["id_token"], hash["not-before-policy"], hash["session_state"], ) end
new(access_token, token_type, expires_in, refresh_token, refresh_expires_in, id_token, not_before_policy, session_state)
click to toggle source
# File lib/keycloak-admin/representation/token_representation.rb, line 13 def initialize(access_token, token_type, expires_in, refresh_token, refresh_expires_in, id_token, not_before_policy, session_state) @access_token = access_token @token_type = token_type @expires_in = expires_in @refresh_token = refresh_token @refresh_expires_in = refresh_expires_in @id_token = id_token @not_before_policy = not_before_policy @session_state = session_state end