AITMONDO

Amazon Cognito adds token exchange for downstream APIs

Two paper access passes beside a server cabinet
AI-generated illustration.

A service acting for a user can exchange their token for one that is limited to a single downstream API and a narrower set of permissions.

An intermediary presents the user’s token to Cognito and receives a narrower token for one downstream API.
AITMONDO graphic based on primary sources.

What the exchange changes

AWS announced OAuth 2.0 token exchange for Amazon Cognito on November 12. An intermediary can call a downstream API with a token issued for that API. The permissions in the new token are the scopes common to the request, the original token and the permissions the app client can issue. The new token has no refresh token. If the request includes an actor token, Cognito records the intermediary in the new token’s act claim.

What developers need to configure

AWS lists support in all regions that offer Cognito, for user pools on Essentials or Plus. The feature must be enabled for the account, the app client must allow the applicable impersonation or delegation flow, and the target API must be registered as a resource server. Applications can use the token endpoint or GetDerivedToken.

Primary sources