Class: Himari::Decisions::Authorization::Context
- Inherits:
-
Struct
- Object
- Struct
- Himari::Decisions::Authorization::Context
- Defined in:
- lib/himari/decisions/authorization.rb
Instance Attribute Summary collapse
-
#claims ⇒ Object
Returns the value of attribute claims.
-
#client ⇒ Object
Returns the value of attribute client.
-
#grant_type ⇒ Object
Returns the value of attribute grant_type.
-
#request ⇒ Object
Returns the value of attribute request.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#user_data ⇒ Object
Returns the value of attribute user_data.
Instance Method Summary collapse
Instance Attribute Details
#claims ⇒ Object
Returns the value of attribute claims
21 22 23 |
# File 'lib/himari/decisions/authorization.rb', line 21 def claims @claims end |
#client ⇒ Object
Returns the value of attribute client
21 22 23 |
# File 'lib/himari/decisions/authorization.rb', line 21 def client @client end |
#grant_type ⇒ Object
Returns the value of attribute grant_type
21 22 23 |
# File 'lib/himari/decisions/authorization.rb', line 21 def grant_type @grant_type end |
#request ⇒ Object
Returns the value of attribute request
21 22 23 |
# File 'lib/himari/decisions/authorization.rb', line 21 def request @request end |
#scopes ⇒ Object
Returns the value of attribute scopes
21 22 23 |
# File 'lib/himari/decisions/authorization.rb', line 21 def scopes @scopes end |
#user_data ⇒ Object
Returns the value of attribute user_data
21 22 23 |
# File 'lib/himari/decisions/authorization.rb', line 21 def user_data @user_data end |
Instance Method Details
#initial? ⇒ Boolean
22 |
# File 'lib/himari/decisions/authorization.rb', line 22 def initial?; grant_type.nil? || grant_type == :initial; end |
#refresh? ⇒ Boolean
23 |
# File 'lib/himari/decisions/authorization.rb', line 23 def refresh?; grant_type == :refresh_token; end |