DescribeIdentityResponse Class
(QtAws::CognitoIdentity::DescribeIdentityResponse)The DescribeIdentityResponse class provides an interace for CognitoIdentity DescribeIdentity responses. More...
| Header: | #include <DescribeIdentityResponse> |
| Inherits: | QtAws::CognitoIdentity::CognitoIdentityResponse |
Public Functions
| DescribeIdentityResponse(const DescribeIdentityRequest &request, QNetworkReply * const reply, QObject * const parent = 0) |
Reimplemented Public Functions
| virtual const DescribeIdentityRequest * | request() const override |
- 7 public functions inherited from QtAws::Core::AwsAbstractResponse
Protected Slots
| virtual void | parseSuccess(QIODevice &response) override |
- 1 protected slot inherited from QtAws::CognitoIdentity::CognitoIdentityResponse
- 1 protected slot inherited from QtAws::Core::AwsAbstractResponse
Additional Inherited Members
- 1 signal inherited from QtAws::Core::AwsAbstractResponse
- 1 static public member inherited from QtAws::Core::AwsAbstractResponse
- 7 protected functions inherited from QtAws::Core::AwsAbstractResponse
Detailed Description
The DescribeIdentityResponse class provides an interace for CognitoIdentity DescribeIdentity responses.
<fullname>Amazon Cognito</fullname>
Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an
application>
Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS
credentials>
To provide end-user credentials, first make an unsigned call to <a>GetId</a>. If the end user is authenticated with one of the supported identity providers, set the <code>Logins</code> map with the identity provider token. <code>GetId</code> returns a unique identifier for the
user>
Next, make an unsigned call to <a>GetCredentialsForIdentity</a>. This call expects the same <code>Logins</code> map as the <code>GetId</code> call, as well as the <code>IdentityID</code> originally returned by <code>GetId</code>. Assuming your identity pool has been configured via the <a>SetIdentityPoolRoles</a> operation, <code>GetCredentialsForIdentity</code> will return AWS credentials for your use. If your pool has not been configured with <code>SetIdentityPoolRoles</code>, or if you want to follow legacy flow, make an unsigned call to <a>GetOpenIdToken</a>, which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same <code>Logins</code> map as the <code>GetId</code> call, as well as the <code>IdentityID</code> originally returned by <code>GetId</code>. The token returned by <code>GetOpenIdToken</code> can be passed to the STS operation <a href="http://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html">AssumeRoleWithWebIdentity</a> to retrieve AWS
credentials>
If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the <a href="http://docs.aws.amazon.com/mobile/index.html">AWS Mobile SDK Developer
See also CognitoIdentityClient::describeIdentity.
Member Function Documentation
DescribeIdentityResponse::DescribeIdentityResponse(const DescribeIdentityRequest &request, QNetworkReply * const reply, QObject * const parent = 0)
Constructs a DescribeIdentityResponse object for reply to request, with parent parent.
[override virtual protected slot] void DescribeIdentityResponse::parseSuccess(QIODevice &response)
Reimplemented from AwsAbstractResponse::parseSuccess().
Parses a successful CognitoIdentity DescribeIdentity response.
[override virtual] const DescribeIdentityRequest *DescribeIdentityResponse::request() const
Reimplemented from AwsAbstractResponse::request().
© 2018 Paul Colby Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.