libZSservicesZSamazonka-cognito-identityZSamazonka-cognito-identity
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentity.GetOpenIdToken

Description

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenID token is valid for 10 minutes.

This is a public API. You do not need any credentials to call this API.

Synopsis

Creating a Request

data GetOpenIdToken Source #

Input to the GetOpenIdToken action.

See: newGetOpenIdToken smart constructor.

Constructors

GetOpenIdToken' 

Fields

  • logins :: Maybe (HashMap Text Text)

    A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token.

  • identityId :: Text

    A unique identifier in the format REGION:GUID.

Instances

Instances details
Eq GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Read GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Show GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Generic GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Associated Types

type Rep GetOpenIdToken :: Type -> Type #

NFData GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Methods

rnf :: GetOpenIdToken -> () #

Hashable GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

ToJSON GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

AWSRequest GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Associated Types

type AWSResponse GetOpenIdToken #

ToHeaders GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

ToPath GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

ToQuery GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

type Rep GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

type Rep GetOpenIdToken = D1 ('MetaData "GetOpenIdToken" "Amazonka.CognitoIdentity.GetOpenIdToken" "libZSservicesZSamazonka-cognito-identityZSamazonka-cognito-identity" 'False) (C1 ('MetaCons "GetOpenIdToken'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logins") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "identityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetOpenIdToken Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

newGetOpenIdToken Source #

Create a value of GetOpenIdToken with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:logins:GetOpenIdToken', getOpenIdToken_logins - A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token.

$sel:identityId:GetOpenIdToken', getOpenIdToken_identityId - A unique identifier in the format REGION:GUID.

Request Lenses

getOpenIdToken_logins :: Lens' GetOpenIdToken (Maybe (HashMap Text Text)) Source #

A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token.

getOpenIdToken_identityId :: Lens' GetOpenIdToken Text Source #

A unique identifier in the format REGION:GUID.

Destructuring the Response

data GetOpenIdTokenResponse Source #

Returned in response to a successful GetOpenIdToken request.

See: newGetOpenIdTokenResponse smart constructor.

Constructors

GetOpenIdTokenResponse' 

Fields

  • token :: Maybe Text

    An OpenID token, valid for 10 minutes.

  • identityId :: Maybe Text

    A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetOpenIdTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Read GetOpenIdTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Show GetOpenIdTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Generic GetOpenIdTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Associated Types

type Rep GetOpenIdTokenResponse :: Type -> Type #

NFData GetOpenIdTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

Methods

rnf :: GetOpenIdTokenResponse -> () #

type Rep GetOpenIdTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetOpenIdToken

type Rep GetOpenIdTokenResponse = D1 ('MetaData "GetOpenIdTokenResponse" "Amazonka.CognitoIdentity.GetOpenIdToken" "libZSservicesZSamazonka-cognito-identityZSamazonka-cognito-identity" 'False) (C1 ('MetaCons "GetOpenIdTokenResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "identityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetOpenIdTokenResponse Source #

Create a value of GetOpenIdTokenResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:token:GetOpenIdTokenResponse', getOpenIdTokenResponse_token - An OpenID token, valid for 10 minutes.

$sel:identityId:GetOpenIdToken', getOpenIdTokenResponse_identityId - A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input.

$sel:httpStatus:GetOpenIdTokenResponse', getOpenIdTokenResponse_httpStatus - The response's http status code.

Response Lenses

getOpenIdTokenResponse_token :: Lens' GetOpenIdTokenResponse (Maybe Text) Source #

An OpenID token, valid for 10 minutes.

getOpenIdTokenResponse_identityId :: Lens' GetOpenIdTokenResponse (Maybe Text) Source #

A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input.