Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data GetOpenIdToken = GetOpenIdToken' {}
- newGetOpenIdToken :: Text -> GetOpenIdToken
- getOpenIdToken_logins :: Lens' GetOpenIdToken (Maybe (HashMap Text Text))
- getOpenIdToken_identityId :: Lens' GetOpenIdToken Text
- data GetOpenIdTokenResponse = GetOpenIdTokenResponse' {
- token :: Maybe Text
- identityId :: Maybe Text
- httpStatus :: Int
- newGetOpenIdTokenResponse :: Int -> GetOpenIdTokenResponse
- getOpenIdTokenResponse_token :: Lens' GetOpenIdTokenResponse (Maybe Text)
- getOpenIdTokenResponse_identityId :: Lens' GetOpenIdTokenResponse (Maybe Text)
- getOpenIdTokenResponse_httpStatus :: Lens' GetOpenIdTokenResponse Int
Creating a Request
data GetOpenIdToken Source #
Input to the GetOpenIdToken action.
See: newGetOpenIdToken
smart constructor.
GetOpenIdToken' | |
|
Instances
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.
GetOpenIdTokenResponse' | |
|
Instances
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.
getOpenIdTokenResponse_httpStatus :: Lens' GetOpenIdTokenResponse Int Source #
The response's http status code.