Class: AgentAdmit::IntrospectionClient::IntrospectionResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/agentadmit/introspection_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#agent_labelObject

Returns the value of attribute agent_label

Returns:

  • (Object)

    the current value of agent_label



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def agent_label
  @agent_label
end

#app_idObject

Returns the value of attribute app_id

Returns:

  • (Object)

    the current value of app_id



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def app_id
  @app_id
end

#connection_idObject

Returns the value of attribute connection_id

Returns:

  • (Object)

    the current value of connection_id



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def connection_id
  @connection_id
end

#expObject

Returns the value of attribute exp

Returns:

  • (Object)

    the current value of exp



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def exp
  @exp
end

#jtiObject

Returns the value of attribute jti

Returns:

  • (Object)

    the current value of jti



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def jti
  @jti
end

#roleObject

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def role
  @role
end

#scopesObject

Returns the value of attribute scopes

Returns:

  • (Object)

    the current value of scopes



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def scopes
  @scopes
end

#subObject

Returns the value of attribute sub

Returns:

  • (Object)

    the current value of sub



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def sub
  @sub
end

#user_idObject

Returns the value of attribute user_id

Returns:

  • (Object)

    the current value of user_id



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def user_id
  @user_id
end

Instance Method Details

#has_scope?(scope) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/agentadmit/introspection_client.rb', line 15

def has_scope?(scope)
  scopes.include?(scope)
end