Class: Aws::CredentialBroker::Types::GetOAuthTokenRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CredentialBroker::Types::GetOAuthTokenRequest
- Defined in:
- gems/aws-sdk-credentialbroker/lib/aws-sdk-credentialbroker/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[:custom_parameters]
Instance Attribute Summary collapse
-
#audiences ⇒ Array<String>
Audience values (RFC 8693) naming the intended recipients of this token.
-
#credential_provider_arn ⇒ String
Amazon Resource Name of the credential provider to obtain the token from.
-
#custom_parameters ⇒ Hash<String,String>
Extra parameters to include in the request to the authorization server, for vendor extensions.
-
#force_authentication ⇒ Boolean
Request a new token from the authorization server even when the broker already holds a valid one for this provider.
-
#grant_type ⇒ String
How the token is obtained.
-
#resources ⇒ Array<String>
Resource indicators (RFC 8707) naming the APIs this token is for.
-
#scopes ⇒ Array<String>
The OAuth scopes to request from the authorization server.
-
#session_uri ⇒ String
Return the token obtained for a consent session that a user has already completed.
Instance Attribute Details
#audiences ⇒ Array<String>
Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.
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.
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.
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.
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.
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.
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.
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.
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 |