Class: G5AuthenticationClient::TokenInfo
- Inherits:
-
Modelish::Base
- Object
- Modelish::Base
- G5AuthenticationClient::TokenInfo
- Defined in:
- lib/g5_authentication_client/token_info.rb
Overview
G5 Authentication access token info
Instance Attribute Summary collapse
-
#application_uid ⇒ String
The UID of the OAuth application that requested this token.
-
#created_at ⇒ Time
The token creation timestamp.
-
#expires_in_seconds ⇒ Integer
The amount of time until the token expires.
-
#resource_owner_id ⇒ String
The ID of the user that owns the resource.
-
#scopes ⇒ Array
The OAuth scopes associated with this token.
Instance Attribute Details
#application_uid ⇒ String
The UID of the OAuth application that requested this token
28 29 |
# File 'lib/g5_authentication_client/token_info.rb', line 28 property :application_uid, from: :application, type: lambda { |val| (val[:uid] || val['uid']).to_s } |
#created_at ⇒ Time
The token creation timestamp
34 |
# File 'lib/g5_authentication_client/token_info.rb', line 34 property :created_at, type: lambda { |val| Time.at(val.to_i) } |
#expires_in_seconds ⇒ Integer
The amount of time until the token expires
23 |
# File 'lib/g5_authentication_client/token_info.rb', line 23 property :expires_in_seconds, type: Integer |
#resource_owner_id ⇒ String
The ID of the user that owns the resource
13 |
# File 'lib/g5_authentication_client/token_info.rb', line 13 property :resource_owner_id, type: String |
#scopes ⇒ Array
The OAuth scopes associated with this token
18 |
# File 'lib/g5_authentication_client/token_info.rb', line 18 property :scopes, type: Array, default: [] |