amazonka-cognito-identity-1.3.0: Amazon Cognito Identity SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoIdentity.GetOpenIdToken

Contents

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 15 minutes.

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

See: AWS API Reference for GetOpenIdToken.

Synopsis

Creating a Request

getOpenIdToken Source

Creates a value of GetOpenIdToken with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

goitLogins :: Lens' GetOpenIdToken (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 or any other OpenId Connect provider, always include the id_token.

goitIdentityId :: Lens' GetOpenIdToken Text Source

A unique identifier in the format REGION:GUID.

Destructuring the Response

getOpenIdTokenResponse Source

Creates a value of GetOpenIdTokenResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

goitrsToken :: Lens' GetOpenIdTokenResponse (Maybe Text) Source

An OpenID token, valid for 15 minutes.

goitrsIdentityId :: 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.