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

Copyright(c) 2013-2016 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.

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:

data GetOpenIdToken Source #

Input to the GetOpenIdToken action.

See: getOpenIdToken smart constructor.

Instances

Eq GetOpenIdToken Source # 
Data GetOpenIdToken Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetOpenIdToken -> c GetOpenIdToken #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetOpenIdToken #

toConstr :: GetOpenIdToken -> Constr #

dataTypeOf :: GetOpenIdToken -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetOpenIdToken) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetOpenIdToken) #

gmapT :: (forall b. Data b => b -> b) -> GetOpenIdToken -> GetOpenIdToken #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetOpenIdToken -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetOpenIdToken -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetOpenIdToken -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetOpenIdToken -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetOpenIdToken -> m GetOpenIdToken #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetOpenIdToken -> m GetOpenIdToken #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetOpenIdToken -> m GetOpenIdToken #

Read GetOpenIdToken Source # 
Show GetOpenIdToken Source # 
Generic GetOpenIdToken Source # 

Associated Types

type Rep GetOpenIdToken :: * -> * #

Hashable GetOpenIdToken Source # 
ToJSON GetOpenIdToken Source # 
NFData GetOpenIdToken Source # 

Methods

rnf :: GetOpenIdToken -> () #

AWSRequest GetOpenIdToken Source # 
ToQuery GetOpenIdToken Source # 
ToPath GetOpenIdToken Source # 
ToHeaders GetOpenIdToken Source # 
type Rep GetOpenIdToken Source # 
type Rep GetOpenIdToken = D1 (MetaData "GetOpenIdToken" "Network.AWS.CognitoIdentity.GetOpenIdToken" "amazonka-cognito-identity-1.4.1-2ODNEQl0RG66R4U6OJe2Uv" False) (C1 (MetaCons "GetOpenIdToken'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_goitLogins") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_goitIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetOpenIdToken Source # 

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, an Amazon Cognito Identity Provider, 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:

data GetOpenIdTokenResponse Source #

Returned in response to a successful GetOpenIdToken request.

See: getOpenIdTokenResponse smart constructor.

Instances

Eq GetOpenIdTokenResponse Source # 
Data GetOpenIdTokenResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetOpenIdTokenResponse -> c GetOpenIdTokenResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetOpenIdTokenResponse #

toConstr :: GetOpenIdTokenResponse -> Constr #

dataTypeOf :: GetOpenIdTokenResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetOpenIdTokenResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetOpenIdTokenResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetOpenIdTokenResponse -> GetOpenIdTokenResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetOpenIdTokenResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetOpenIdTokenResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetOpenIdTokenResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetOpenIdTokenResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetOpenIdTokenResponse -> m GetOpenIdTokenResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetOpenIdTokenResponse -> m GetOpenIdTokenResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetOpenIdTokenResponse -> m GetOpenIdTokenResponse #

Read GetOpenIdTokenResponse Source # 
Show GetOpenIdTokenResponse Source # 
Generic GetOpenIdTokenResponse Source # 
NFData GetOpenIdTokenResponse Source # 

Methods

rnf :: GetOpenIdTokenResponse -> () #

type Rep GetOpenIdTokenResponse Source # 
type Rep GetOpenIdTokenResponse = D1 (MetaData "GetOpenIdTokenResponse" "Network.AWS.CognitoIdentity.GetOpenIdToken" "amazonka-cognito-identity-1.4.1-2ODNEQl0RG66R4U6OJe2Uv" False) (C1 (MetaCons "GetOpenIdTokenResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_goitrsToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_goitrsIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_goitrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

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.