ExitAmazon Cognito: identity-pool credential federation1 / 9
Explanation

From an identity to an AWS session

How identity pools exchange authenticated or guest identities for temporary AWS credentials through restricted role selection and principal tags. · advanced

An identity pool stores user identifiers linked to external identity providers and provides temporary AWS credentials. User-pool authentication is separate: obtaining a sign-in token does not itself grant AWS credentials. An authenticated user presents a token; enabled guest access provides a unique identifier and credentials without authenticating with an identity provider. Authenticated users and guests can assume different IAM roles.

The diagram follows the identity-pool-managed credential exchange and then one resource request. The identity pool selects a role, and AWS STS issues temporary role credentials that return through the pool to the client. The client uses those credentials to request access to Amazon S3.

Keep the responsibilities separate: IAM defines the roles and their policies; it is not the identity-pool exchange or the STS credential-issuing endpoint. This flow obtains temporary role-session credentials, not a stored secret retrieved from AWS Secrets Manager.

Identity requestRole session requestTemporary credentialsTemporary credentialsSigned request
AWS Tools and SDKsApplication client
Amazon CognitoIdentity pool: role selection and claim mappings
AWS Security Token Service (AWS STS)Temporary role session
Amazon S3AWS resource access

1 / 6 The application client needs temporary AWS credentials before making its resource request.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.