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

#audString

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_idString?

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

#expInteger

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

#iatInteger

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

#issString

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

#jtiString

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

#scopeString

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

#subString

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_keysObject

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