Amazon Cognito adds token exchange for downstream APIs

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.
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.