class Authlete::Model::Request::TokenCreateRequest
Attributes
accessToken[RW]
accessTokenDuration[RW]
accessTokenPersistent[RW]
access_token[RW]
access_token=[RW]
access_token_duration[RW]
access_token_duration=[RW]
access_token_persistent[RW]
access_token_persistent=[RW]
certificateThumbprint[RW]
certificate_thumbprint[RW]
certificate_thumbprint=[RW]
clientId[RW]
clientIdAlias[RW]
client_id[RW]
client_id=[RW]
client_id_alias[RW]
client_id_alias=[RW]
dpopKeyThumbprint[RW]
dpop_key_thumbprint[RW]
dpop_key_thumbprint=[RW]
grantType[RW]
grant_type[RW]
grant_type=[RW]
properties[RW]
refreshToken[RW]
refreshTokenDuration[RW]
refresh_token[RW]
refresh_token=[RW]
refresh_token_duration[RW]
refresh_token_duration=[RW]
scopes[RW]
subject[RW]
Private Instance Methods
defaults()
click to toggle source
# File lib/authlete/model/request/token-create-request.rb, line 72 def defaults { grantType: nil, clientId: 0, subject: nil, scopes: nil, accessTokenDuration: 0, refreshTokenDuration: 0, properties: nil, clientIdAlias: nil, accessToken: nil, refreshToken: nil, accessTokenPersistent: false, certificateThumbprint: nil, dpopKeyThumbprint: nil } end
set_params(hash)
click to toggle source
# File lib/authlete/model/request/token-create-request.rb, line 90 def set_params(hash) @grantType = hash[:grantType] @clientId = hash[:clientId] @subject = hash[:subject] @scopes = hash[:scopes] @accessTokenDuration = hash[:accessTokenDuration] @refreshTokenDuration = hash[:refreshTokenDuration] @properties = get_parsed_array(hash[:properties]) { |e| Authlete::Model::Property.parse(e) } @clientIdAlias = hash[:clientIdAlias] @accessToken = hash[:accessToken] @refreshToken = hash[:refreshToken] @accessTokenPersistent = hash[:accessTokenPersistent] @certificateThumbprint = hash[:certificateThumbprint] @dpopKeyThumbprint = hash[:dpopKeyThumbprint] end
to_hash_value(key, var)
click to toggle source
# File lib/authlete/model/request/token-create-request.rb, line 106 def to_hash_value(key, var) raw_val = instance_variable_get(var) case key when :properties raw_val&.map { |e| e.to_hash } else raw_val end end