Cognito Flashcards
What does Amazon Cognito provide?
Authentication, authorization, and user management for web and mobile applications.
What is a User Pool in Cognito?
User pools provide sign-in and provide JSON Web Tokens (JWT). User pools DO NOT grant access to AWS resources.
User pools provide user sign-up, sign-in (customizable web UI), MFA, and user profiles.
What is an Identity Pool in Cognito?
Identity Pools offer access to temporary AWS credentials. This supports:
- Unauthenticated identities (guest/anonymous users)
- Federated identities (swap third-party and User Pool JWTs for short term AWS credentials (Roles) to access AWS resources)
Can API Gateway accept User Pool tokens or must they be swapped for Identity Pool credentials?
API Gateway can accept User Pool tokens directly.
How can you create a Federated Web Identity system using Cognito?
Log in to a User Pool using a third party identity provider and receive a JWT. Swap that JWT in an Identity Pool for a Role to access AWS resources.
Why would you use Cognito instead of IAM to create and manage users for your application?
IAM has a 5,000 user limit. Cognito can use Federate Web Identity to have infinite users.