Using AWS Security for Developers
Rahul Singh
Technical Product Manager
Amazon Cognito

Amazon Cognito
Which one do you need?

A managed user directory

A managed user directory
On success, three tokens

A managed user directory
On success, three tokens

Tokens are not credentials
Identity pools: trusted token in, credentials out

Tokens are not credentials
Identity pools: trusted token in, credentials out

A browser using both
Bearer token: whoever holds it, uses it

A browser using both

A browser using both
Tokens to your code, credentials to AWS


JWT: JSON Web Token

JWT: JSON Web Token
Verification comes first

Verification comes first
Then three claims
iss: your user poolaud on an ID token, client_id on an access tokenexp: still current

Verified, and still the wrong token

Verified, and still the wrong token
token_use says which kind
cognito:groups rides on both kinds, and is not a scope
scope: what the token may call
sub: which user, and it never changesUsing AWS Security for Developers