Class: LogtoCore::IdTokenClaims
- Inherits:
-
Struct
- Object
- Struct
- LogtoCore::IdTokenClaims
- Defined in:
- lib/logto/core/index_types.rb
Overview
The claims that are returned in the ID Token.
Instance Attribute Summary collapse
-
#at_hash ⇒ String?
The access token hash value.
-
#aud ⇒ String
The audience (client ID) of this token.
-
#email ⇒ String?
The email address of the user.
-
#email_verified ⇒ Boolean
Whether the user’s email address has been verified.
-
#exp ⇒ Integer
The expiration time of this token.
-
#iat ⇒ Integer
The time at which this token was issued.
-
#iss ⇒ String
The issuer of this token.
-
#name ⇒ String?
The full name of the user.
-
#organization_roles ⇒ Array<String>
All organization roles that the user has.
-
#organizations ⇒ Array<String>
The organization IDs that the user has membership in.
-
#phone_number ⇒ String?
The phone number of the user.
-
#phone_number_verified ⇒ Boolean
Whether the user’s phone number has been verified.
-
#picture ⇒ String?
The URL of the user’s profile picture.
-
#roles ⇒ Array<String>
The roles that the user has for API resources.
-
#sub ⇒ String
The subject (user ID) of this token.
-
#unknown_keys ⇒ Object
Returns the value of attribute unknown_keys.
-
#username ⇒ String?
The username of the user.
Instance Attribute Details
#at_hash ⇒ String?
The access token hash value.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def at_hash @at_hash end |
#aud ⇒ String
The audience (client ID) of this token.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def aud @aud end |
#email ⇒ String?
The email address of the user.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def email @email end |
#email_verified ⇒ Boolean
Whether the user’s email address has been verified.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def email_verified @email_verified end |
#exp ⇒ Integer
The expiration time of this token.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def exp @exp end |
#iat ⇒ Integer
The time at which this token was issued.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def iat @iat end |
#iss ⇒ String
The issuer of this token.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def iss @iss end |
#name ⇒ String?
The full name of the user.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def name @name end |
#organization_roles ⇒ Array<String>
All organization roles that the user has. The format is ‘[organizationId]:`.
Note that not all organizations are included in this list, only the ones that the user has roles in.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def organization_roles @organization_roles end |
#organizations ⇒ Array<String>
The organization IDs that the user has membership in.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def organizations @organizations end |
#phone_number ⇒ String?
The phone number of the user.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def phone_number @phone_number end |
#phone_number_verified ⇒ Boolean
Whether the user’s phone number has been verified.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def phone_number_verified @phone_number_verified end |
#picture ⇒ String?
The URL of the user’s profile picture.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def picture @picture end |
#roles ⇒ Array<String>
The roles that the user has for API resources.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def roles @roles end |
#sub ⇒ String
The subject (user ID) of this token.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def sub @sub end |
#unknown_keys ⇒ Object
Returns the value of attribute unknown_keys
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def unknown_keys @unknown_keys end |
#username ⇒ String?
The username of the user.
54 55 56 |
# File 'lib/logto/core/index_types.rb', line 54 def username @username end |