Class: Aws::CredentialBroker::Types::GetOAuthTokenRequest

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

Overview

Constant Summary collapse

SENSITIVE =
[:custom_parameters]

Instance Attribute Summary collapse

Instance Attribute Details

#audiences ⇒ Array<String>

Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.

Returns:

  • (Array<String>)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end

#credential_provider_arn ⇒ String

Amazon Resource Name of the credential provider to obtain the token from. The provider must be an OAuth provider and must be READY.

Returns:

  • (String)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end

#custom_parameters ⇒ Hash<String,String>

Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.

Returns:

  • (Hash<String,String>)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end

#force_authentication ⇒ Boolean

Request a new token from the authorization server even when the broker already holds a valid one for this provider. Defaults to false, which returns the held token when one is available.

Returns:

  • (Boolean)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end

#grant_type ⇒ String

How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.

Returns:

  • (String)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end

#resources ⇒ Array<String>

Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.

Returns:

  • (Array<String>)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end

#scopes ⇒ Array<String>

The OAuth scopes to request from the authorization server.

Returns:

  • (Array<String>)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end

#session_uri ⇒ String

Return the token obtained for a consent session that a user has already completed. Supply the handle returned when the session was started.

Returns:

  • (String)


166
167
168
169
170
171
172
173
174
175
176
177
# File 'gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb', line 166

class GetOAuthTokenRequest < Struct.new(
  :credential_provider_arn,
  :grant_type,
  :scopes,
  :resources,
  :audiences,
  :custom_parameters,
  :force_authentication,
  :session_uri)
  SENSITIVE = [:custom_parameters]
  include Aws::Structure
end