Class: Himari::Services::DownstreamAuthorization::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authz_resultObject

Returns the value of attribute authz_result

Returns:

  • (Object)

    the current value of authz_result



24
25
26
# File 'lib/himari/services/downstream_authorization.rb', line 24

def authz_result
  @authz_result
end

#claimsObject

Returns the value of attribute claims

Returns:

  • (Object)

    the current value of claims



24
25
26
# File 'lib/himari/services/downstream_authorization.rb', line 24

def claims
  @claims
end

#clientObject

Returns the value of attribute client

Returns:

  • (Object)

    the current value of client



24
25
26
# File 'lib/himari/services/downstream_authorization.rb', line 24

def client
  @client
end

#lifetimeObject

Returns the value of attribute lifetime

Returns:

  • (Object)

    the current value of lifetime



24
25
26
# File 'lib/himari/services/downstream_authorization.rb', line 24

def lifetime
  @lifetime
end

Instance Method Details

#as_logObject



25
26
27
28
29
30
31
32
33
# File 'lib/himari/services/downstream_authorization.rb', line 25

def as_log
  {
    client: client.as_log,
    claims: claims,
    decision: {
      authorization: authz_result.as_log,
    },
  }
end