Class: Aws::CredentialBroker::Types::GetOAuthTokenResponse

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[:access_token]

Instance Attribute Summary collapse

Instance Attribute Details

#access_token ⇒ String

The access token. Present it to the third-party API as a bearer credential.

Returns:

  • (String)


197
198
199
200
201
202
203
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 197

class GetOAuthTokenResponse < Struct.new(
  :access_token,
  :expires_at,
  :session_status)
  SENSITIVE = [:access_token]
  include Aws::Structure
end

#expires_at ⇒ Time

When the access token expires. Absent when the authorization server does not report an expiry, in which case the token's lifetime is whatever that server applies.

Returns:

  • (Time)


197
198
199
200
201
202
203
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 197

class GetOAuthTokenResponse < Struct.new(
  :access_token,
  :expires_at,
  :session_status)
  SENSITIVE = [:access_token]
  include Aws::Structure
end

#session_status ⇒ String

Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.

Returns:

  • (String)


197
198
199
200
201
202
203
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 197

class GetOAuthTokenResponse < Struct.new(
  :access_token,
  :expires_at,
  :session_status)
  SENSITIVE = [:access_token]
  include Aws::Structure
end