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
26 27 |
# File 'lib/g5_authentication_client/token_info.rb', line 26 property :application_uid, from: :application, type: lambda { |val| (val[:uid] || val['uid']).to_s } |
#created_at ⇒ Time
The token creation timestamp
32 |
# File 'lib/g5_authentication_client/token_info.rb', line 32 property :created_at, type: lambda { |val| Time.at(val.to_i) } |
#expires_in_seconds ⇒ Integer
The amount of time until the token expires
21 |
# File 'lib/g5_authentication_client/token_info.rb', line 21 property :expires_in_seconds, type: Integer |
#resource_owner_id ⇒ String
The ID of the user that owns the resource
11 |
# File 'lib/g5_authentication_client/token_info.rb', line 11 property :resource_owner_id, type: String |
#scopes ⇒ Array
The OAuth scopes associated with this token
16 |
# File 'lib/g5_authentication_client/token_info.rb', line 16 property :scopes, type: Array, default: [] |