Amazon Cognito is serverless identity provider (IDP) that allows user sign-up, sign-in, and access control. Cognito is also an identity broker that allows sign-in with 3rd party IDPs.
User pools are directories of users. To add a new user pool, navigate to cognito from the AWS console. Choose Manage User Pools and select Create a User Pool. Click Review defaults and Create pool.
Clients have a many to one relationship to the pool. You can add a client through the AWS console: select a user pool, choose App clients and Add an app client.
aws/amazon-cognito-identity-js library on
GitHub. Be sure to include both
aws-cognito-sdk is a dependency. It's a
Amazon Cognito Federated Identities enable you to create unique identities and assign permissions for users. Your identity pool can include:
- Users in an Amazon Cognito user pool
- Users who authenticate with federated identity providers such as Facebook, Google, or a SAML-based identity provider
- Users authenticated via your own existing authentication process
Navigate to Cognito from the AWS console. Choose Manage Federated Identities and Create Identity Pool.