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)


24
25
# File 'lib/g5_authentication_client/token_info.rb', line 24

property :application_uid, from: :application,
type: lambda { |val| (val[:uid] || val['uid']).to_s }

#expires_in_secondsInteger

The amount of time until the token expires

Returns:

  • (Integer)


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

property :expires_in_seconds, type: Integer

#resource_owner_idString

The ID of the user that owns the resource

Returns:

  • (String)


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

property :resource_owner_id, type: String

#scopesArray

The OAuth scopes associated with this token

Returns:

  • (Array)


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

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