Class: Himari::Services::UpstreamAuthentication::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/himari/services/upstream_authentication.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authn_resultObject

Returns the value of attribute authn_result

Returns:

  • (Object)

    the current value of authn_result



27
28
29
# File 'lib/himari/services/upstream_authentication.rb', line 27

def authn_result
  @authn_result
end

#claims_resultObject

Returns the value of attribute claims_result

Returns:

  • (Object)

    the current value of claims_result



27
28
29
# File 'lib/himari/services/upstream_authentication.rb', line 27

def claims_result
  @claims_result
end

#session_dataObject

Returns the value of attribute session_data

Returns:

  • (Object)

    the current value of session_data



27
28
29
# File 'lib/himari/services/upstream_authentication.rb', line 27

def session_data
  @session_data
end

Instance Method Details

#as_logObject



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