Class: Himari::Services::UpstreamAuthentication::Result
- Inherits:
-
Struct
- Object
- Struct
- Himari::Services::UpstreamAuthentication::Result
- Defined in:
- lib/himari/services/upstream_authentication.rb
Instance Attribute Summary collapse
-
#authn_result ⇒ Object
Returns the value of attribute authn_result.
-
#claims_result ⇒ Object
Returns the value of attribute claims_result.
-
#session_data ⇒ Object
Returns the value of attribute session_data.
Instance Method Summary collapse
Instance Attribute Details
#authn_result ⇒ Object
Returns the value of attribute authn_result
27 28 29 |
# File 'lib/himari/services/upstream_authentication.rb', line 27 def authn_result @authn_result end |
#claims_result ⇒ Object
Returns the value of attribute claims_result
27 28 29 |
# File 'lib/himari/services/upstream_authentication.rb', line 27 def claims_result @claims_result end |
#session_data ⇒ Object
Returns the value of attribute session_data
27 28 29 |
# File 'lib/himari/services/upstream_authentication.rb', line 27 def session_data @session_data end |
Instance Method Details
#as_log ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/himari/services/upstream_authentication.rb', line 28 def as_log { session: session_data&.as_log, decision: { claims: claims_result&.as_log&.reject{ |k,_v| %i(allowed explicit_deny).include?(k) }, authentication: authn_result&.as_log, }, } end |