Class: Himari::Decisions::Authentication::Context
- Inherits:
-
Struct
- Object
- Struct
- Himari::Decisions::Authentication::Context
- Defined in:
- lib/himari/decisions/authentication.rb
Instance Attribute Summary collapse
-
#claims ⇒ Object
Returns the value of attribute claims.
-
#grant_type ⇒ Object
Returns the value of attribute grant_type.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#refresh_info ⇒ Object
Returns the value of attribute refresh_info.
-
#request ⇒ Object
Returns the value of attribute request.
-
#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
9 10 11 |
# File 'lib/himari/decisions/authentication.rb', line 9 def claims @claims end |
#grant_type ⇒ Object
Returns the value of attribute grant_type
9 10 11 |
# File 'lib/himari/decisions/authentication.rb', line 9 def grant_type @grant_type end |
#provider ⇒ Object
Returns the value of attribute provider
9 10 11 |
# File 'lib/himari/decisions/authentication.rb', line 9 def provider @provider end |
#refresh_info ⇒ Object
Returns the value of attribute refresh_info
9 10 11 |
# File 'lib/himari/decisions/authentication.rb', line 9 def refresh_info @refresh_info end |
#request ⇒ Object
Returns the value of attribute request
9 10 11 |
# File 'lib/himari/decisions/authentication.rb', line 9 def request @request end |
#user_data ⇒ Object
Returns the value of attribute user_data
9 10 11 |
# File 'lib/himari/decisions/authentication.rb', line 9 def user_data @user_data end |
Instance Method Details
#initial? ⇒ Boolean
10 |
# File 'lib/himari/decisions/authentication.rb', line 10 def initial?; grant_type.nil? || grant_type == :initial; end |
#refresh? ⇒ Boolean
11 |
# File 'lib/himari/decisions/authentication.rb', line 11 def refresh?; grant_type == :refresh_token; end |