Login with Amazon Cognito
Log in with Cognito
What happens when you log in
- This app sends your browser to the Cognito login page. It sends a random
state value and a PKCE challenge.
- You type your password on the Cognito page. This app never sees your password.
- Cognito sends your browser back to
/callback with a one-time code.
- This app checks
state, then exchanges the code for tokens in a server-to-server call.
- This app verifies the ID token signature with the public keys of the user pool.
- If you are in the
aws-users group, this app sends the ID token to the identity pool and gets temporary AWS credentials for the role of that group.
- This app creates its own session. Your browser holds only a session cookie.