Exception: Himari::Services::OidcAuthorizationEndpoint::ConsentRequired
- Inherits:
-
StandardError
- Object
- StandardError
- Himari::Services::OidcAuthorizationEndpoint::ConsentRequired
- 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
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(client:, scopes:) ⇒ ConsentRequired
constructor
A new instance of ConsentRequired.
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
21 22 23 |
# File 'lib/himari/services/oidc_authorization_endpoint.rb', line 21 def client @client end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
21 22 23 |
# File 'lib/himari/services/oidc_authorization_endpoint.rb', line 21 def scopes @scopes end |