Class: Aws::CognitoIdentityProvider::Types::GetDerivedTokenRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CognitoIdentityProvider::Types::GetDerivedTokenRequest
- Defined in:
- gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb
Overview
Represents the request to exchange a subject token for a new token.
Constant Summary collapse
- SENSITIVE =
[:client_id, :client_secret, :subject_token, :actor_token]
Instance Attribute Summary collapse
-
#actor_token ⇒ String
A token that identifies the intermediary service that is exchanging the token on behalf of the user.
-
#actor_token_provider_name ⇒ String
The name of the third-party identity provider that issued the
ActorToken, if the actor token isn't a Amazon Cognito token. -
#actor_token_type ⇒ String
The type of the
ActorTokenthat you provide. -
#audiences ⇒ Array<String>
The logical name of the target service where you intend to use the issued token.
-
#client_id ⇒ String
The ID of the app client that requests the token exchange.
-
#client_secret ⇒ String
The client secret of the requested app client, if the client has a secret.
-
#requested_token_type ⇒ String
The type of token that you want Amazon Cognito to issue.
-
#resources ⇒ Array<String>
The identifier of a resource server in your user pool where you intend to use the issued token.
-
#scopes ⇒ Array<String>
The scopes that you want the new token to have.
-
#subject_token ⇒ String
The token that you want to exchange for a new token.
-
#subject_token_provider_name ⇒ String
The name of the third-party identity provider that issued the
SubjectToken, if the subject token isn't a Amazon Cognito token. -
#subject_token_type ⇒ String
The type of the
SubjectTokenthat you want to exchange.
Instance Attribute Details
#actor_token ⇒ String
A token that identifies the intermediary service that is exchanging
the token on behalf of the user. When you provide an ActorToken,
the token that Amazon Cognito issues carries an act claim that
identifies the intermediary, so that downstream services can
distinguish a user acting directly from an intermediary acting on
the user's behalf.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#actor_token_provider_name ⇒ String
The name of the third-party identity provider that issued the
ActorToken, if the actor token isn't a Amazon Cognito token.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#actor_token_type ⇒ String
The type of the ActorToken that you provide. Required when you
provide an ActorToken. Valid values:
ACCESS_TOKEN– The actor token is an access token.ID_TOKEN– The actor token is an ID token.SAML2– The actor token is a SAML 2.0 assertion.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#audiences ⇒ Array<String>
The logical name of the target service where you intend to use the
issued token. You can't request both Audiences and Resources in
the same request.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#client_id ⇒ String
The ID of the app client that requests the token exchange.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#client_secret ⇒ String
The client secret of the requested app client, if the client has a secret.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#requested_token_type ⇒ String
The type of token that you want Amazon Cognito to issue. Valid values:
ACCESS_TOKEN– Issues an access token.ID_TOKEN– Issues an ID token.
Amazon Cognito can't issue a SAML assertion, so SAML2 isn't a
valid value for this parameter.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#resources ⇒ Array<String>
The identifier of a resource server in your user pool where you
intend to use the issued token. You can't request both Resources
and Audiences in the same request.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#scopes ⇒ Array<String>
The scopes that you want the new token to have. Amazon Cognito
issues a token with the intersection of these requested scopes, the
scopes of your SubjectToken, and the scopes that are allowed for
the requesting app client. If you don't specify any scopes, Amazon
Cognito issues a token with the same scopes as your SubjectToken.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#subject_token ⇒ String
The token that you want to exchange for a new token. This is the credential that represents the identity of the party on behalf of whom the request is being made.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#subject_token_provider_name ⇒ String
The name of the third-party identity provider that issued the
SubjectToken, if the subject token isn't a Amazon Cognito token.
Provide this value when your SubjectToken came from a SAML or OIDC
provider that you registered with your user pool, so that Amazon
Cognito can validate it against that provider's configuration. Omit
this parameter for a Amazon Cognito ID or access token.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |
#subject_token_type ⇒ String
The type of the SubjectToken that you want to exchange. Valid
values:
ACCESS_TOKEN– The subject token is an access token.ID_TOKEN– The subject token is an ID token.SAML2– The subject token is a SAML 2.0 assertion.
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 |
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 7584 class GetDerivedTokenRequest < Struct.new( :client_id, :client_secret, :subject_token, :subject_token_type, :subject_token_provider_name, :actor_token, :actor_token_type, :actor_token_provider_name, :scopes, :audiences, :resources, :requested_token_type) SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token] include Aws::Structure end |