class Authlete::Model::Response::AuthenticationCallbackResponse

Attributes

authenticated[RW]
claims[RW]
subject[RW]

Private Instance Methods

defaults() click to toggle source
# File lib/authlete/model/response/authentication-callback-response.rb, line 35
def defaults
  {
    authenticated: false,
    subject:       nil,
    claims:        nil
  }
end
set_params(hash) click to toggle source
# File lib/authlete/model/response/authentication-callback-response.rb, line 43
def set_params(hash)
  @authenticated = hash[:authenticated]
  @subject       = hash[:subject]
  @claims        = hash[:claims]
end
to_rack_response() click to toggle source
# File lib/authlete/model/response/authentication-callback-response.rb, line 49
def to_rack_response
  to_rack_response_json(200, JSON.generate(
    authenticated: @authenticated,
    subject:       @subject,
    claims:        @claims
  ))
end