Class: Aws::CognitoIdentityProvider::Types::GetDerivedTokenRequest

Inherits:
Struct
  • Object
show all
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

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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (Array<String>)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (Array<String>)


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.

Returns:

  • (Array<String>)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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