class Authlete::Model::Response::TokenResponse
Attributes
accessToken[RW]
accessTokenDuration[RW]
accessTokenExpiresAt[RW]
accessTokenResources[RW]
access_token[RW]
access_token=[RW]
access_token_duration[RW]
access_token_duration=[RW]
access_token_expires_at[RW]
access_token_expires_at=[RW]
access_token_resources[RW]
access_token_resources=[RW]
action[RW]
clientId[RW]
clientIdAlias[RW]
clientIdAliasUsed[RW]
client_id[RW]
client_id=[RW]
client_id_alias[RW]
client_id_alias=[RW]
client_id_alias_used[RW]
client_id_alias_used=[RW]
grantType[RW]
grant_type[RW]
grant_type=[RW]
idToken[RW]
id_token[RW]
id_token=[RW]
jwtAccessToken[RW]
jwt_access_token[RW]
jwt_access_token=[RW]
password[RW]
properties[RW]
refreshToken[RW]
refreshTokenDuration[RW]
refreshTokenExpiresAt[RW]
refresh_token[RW]
refresh_token=[RW]
refresh_token_duration[RW]
refresh_token_duration=[RW]
refresh_token_expires_at[RW]
refresh_token_expires_at=[RW]
responseContent[RW]
response_content[RW]
response_content=[RW]
scopes[RW]
subject[RW]
ticket[RW]
username[RW]
Private Instance Methods
defaults()
click to toggle source
Calls superclass method
Authlete::Model::Result#defaults
# File lib/authlete/model/response/token-response.rb, line 95 def defaults super.merge( action: nil, responseContent: nil, username: nil, password: nil, ticket: nil, accessToken: nil, accessTokenExpiresAt: 0, accessTokenDuration: 0, refreshToken: nil, refreshTokenExpiresAt: 0, refreshTokenDuration: 0, idToken: nil, grantType: nil, clientId: 0, clientIdAlias: nil, clientIdAliasUsed: false, subject: nil, scopes: nil, properties: nil, jwtAccessToken: nil, accessTokenResources: nil ) end
set_params(hash)
click to toggle source
Calls superclass method
Authlete::Model::Result#set_params
# File lib/authlete/model/response/token-response.rb, line 121 def set_params(hash) super(hash) @action = hash[:action] @responseContent = hash[:responseContent] @username = hash[:username] @password = hash[:password] @ticket = hash[:ticket] @accessToken = hash[:accessToken] @accessTokenExpiresAt = hash[:accessTokenExpiresAt] @accessTokenDuration = hash[:accessTokenDuration] @refreshToken = hash[:refreshToken] @refreshTokenExpiresAt = hash[:refreshTokenExpiresAt] @refreshTokenDuration = hash[:refreshTokenDuration] @idToken = hash[:idToken] @grantType = hash[:grantType] @clientId = hash[:clientId] @clientIdAlias = hash[:clientIdAlias] @clientIdAliasUsed = hash[:clientIdAliasUsed] @subject = hash[:subject] @scopes = hash[:scopes] @properties = get_parsed_array(hash[:properties]) { |e| Authlete::Model::Property.parse(e) } @jwtAccessToken = hash[:jwtAccessToken] @accessTokenResources = hash[:accessTokenResources] end