Class: LogtoCore::AccessTokenClaims

Inherits:
Struct
  • Object
show all
Defined in:
lib/logto/core/index_types.rb

Overview

The claims that are returned in the access token.

Instance Attribute Summary collapse

Instance Attribute Details

#aud ⇒ String

The audience (API resource or organization ID) of this token.

Returns:

  • (String) —

    the current value of aud



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def aud
  @aud
end

#client_id ⇒ String?

The client ID that this token was issued to.

Returns:

  • (String, nil) —

    the current value of client_id



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def client_id
  @client_id
end

#exp ⇒ Integer

The expiration time of this token.

Returns:

  • (Integer) —

    the current value of exp



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def exp
  @exp
end

#iat ⇒ Integer

The time at which this token was issued.

Returns:

  • (Integer) —

    the current value of iat



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def iat
  @iat
end

#iss ⇒ String

The issuer of this token.

Returns:

  • (String) —

    the current value of iss



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def iss
  @iss
end

#jti ⇒ String

The JWT ID of this token.

Returns:

  • (String) —

    the current value of jti



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def jti
  @jti
end

#scope ⇒ String

The scopes that this token has.

Returns:

  • (String) —

    the current value of scope



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def scope
  @scope
end

#sub ⇒ String

The subject (user ID or client ID) of this token.

Returns:

  • (String) —

    the current value of sub



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def sub
  @sub
end

#unknown_keys ⇒ Object

Returns the value of attribute unknown_keys

Returns:

  • (Object) —

    the current value of unknown_keys



82
83
84
# File 'lib/logto/core/index_types.rb', line 82

def unknown_keys
  @unknown_keys
end