Class: G5AuthenticationClient::TokenInfo

Inherits:
Modelish::Base
  • Object
show all
Defined in:
lib/g5_authentication_client/token_info.rb

Overview

G5 Authentication access token info

Instance Attribute Summary collapse

Instance Attribute Details

#application_uidString

The UID of the OAuth application that requested this token

Returns:

  • (String)


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_atTime

The token creation timestamp

Returns:

  • (Time)


34
# File 'lib/g5_authentication_client/token_info.rb', line 34

property :created_at, type: lambda { |val| Time.at(val.to_i) }

#expires_in_secondsInteger

The amount of time until the token expires

Returns:

  • (Integer)


23
# File 'lib/g5_authentication_client/token_info.rb', line 23

property :expires_in_seconds, type: Integer

#resource_owner_idString

The ID of the user that owns the resource

Returns:

  • (String)


13
# File 'lib/g5_authentication_client/token_info.rb', line 13

property :resource_owner_id, type: String

#scopesArray

The OAuth scopes associated with this token

Returns:

  • (Array)


18
# File 'lib/g5_authentication_client/token_info.rb', line 18

property :scopes, type: Array, default: []