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)


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_atTime

The token creation timestamp

Returns:

  • (Time)


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

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

#expires_in_secondsInteger

The amount of time until the token expires

Returns:

  • (Integer)


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

property :expires_in_seconds, type: Integer

#resource_owner_idString

The ID of the user that owns the resource

Returns:

  • (String)


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

property :resource_owner_id, type: String

#scopesArray

The OAuth scopes associated with this token

Returns:

  • (Array)


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

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