Security, Identity & Compliance
Amazon Cognito
User sign-up, sign-in, and access control for web/mobile apps.
Official docsOverview
Cognito provides User Pools (identity directory with MFA, OAuth/OIDC) and Identity Pools (federate to AWS credentials).
When to use it
- B2C/B2B auth without building from scratch
- Federated login (Google, SAML, OIDC)
Setup
- Create User Pool → app client (no secret for SPA).
- Configure password policy, MFA, hosted UI domain.
- Optionally create Identity Pool to map users → IAM roles.
How to use
Hosted UI URL
https://<domain>.auth.<region>.amazoncognito.com/login?client_id=…&response_type=code&redirect_uri=…
QA use cases
- Use the AdminCreateUser API to provision a pool of test users per test run, then delete on teardown.
