Exception: Himari::Services::OidcAuthorizationEndpoint::ConsentRequired

Inherits:
StandardError
  • Object
show all
Defined in:
lib/himari/services/oidc_authorization_endpoint.rb

Overview

Raised when the user must be shown the consent page before a code is granted. Carries the data the page renders (the requesting client and the requested scopes); app.rb rescues it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:, scopes:) ⇒ ConsentRequired

Returns a new instance of ConsentRequired.



15
16
17
18
19
# File 'lib/himari/services/oidc_authorization_endpoint.rb', line 15

def initialize(client:, scopes:)
  @client = client
  @scopes = scopes
  super('consent required')
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



21
22
23
# File 'lib/himari/services/oidc_authorization_endpoint.rb', line 21

def client
  @client
end

#scopesObject (readonly)

Returns the value of attribute scopes.



21
22
23
# File 'lib/himari/services/oidc_authorization_endpoint.rb', line 21

def scopes
  @scopes
end