The main reason for having an identitypool is to assign a specific role to the users of that pool that is the one contained in the jwttoken.
Cognito user pool vs federated identity pool.
Amazon cognito user pools login with amazon sign in with apple facebook google you can specify your application identifiers in the amazon cognito identity pools federated identities console.
These two services solve the same problem i e.
Cognito identity pool or cognito federated identities is a service that uses identity providers like google facebook or cognito user pool to secure access to other aws resources.
Cognito identity pool or cognito federated identities on the other hand is a way to authorize your users to use the various aws services.
Amazon cognito identity pools federated identities enable you to create unique identities for your users and federate them with identity providers.
Say you wanted to allow a user to have access to your s3 bucket so that they could upload a file.
Cognito user pools or identity pools depending on your needs common use cases.
If you allow your users to authenticate using public identity providers e g.
In this use case an user logins through aws cognito.
Next we must define an app client which can.
Give your pool a name such as awscognitoblogpost.
Federated identities that are similar on the surface but different under the hood.
If what you re aiming for is using aws as sort of a backend as as service you should use cid.
Identity pools understanding the difference.
As we mentioned earlier aws cognito is comprised of two separate but related services.
To get a practical insight into using these let us look at an example of using both aws cognito userpools and federated identities together.
Your pool should now be created.
With an identity pool you can obtain temporary limited privilege aws credentials to access other aws services.
Authentication and authorization but do so in very different ways.
User pools and identity pools also called federated identities.
Cognito federated identities or identity pool.
You can see below some common scenarios where you could be hesitating about which service suits your needs.
Aws cognito federated identities granting access to amazon services.
Amazon cognito user pool is a service that helps manage your users and the sign up and sign in functionality for your mobile or web app.
Example of using aws cognito userpools and federated identities together.
Amazon cognito identity pools support the following identity providers.
A user pool is simply a user directory that enable users to sign in to your mobile or web app via cognito.
I have one cognito user pool that does not have an identity pool and one that does and both have the same auth process.
You could specify that while creating an identity pool.
One of the reasons for this is because cognito is comprised of two services user pools and identity pools a k a.