Cognito Adds OAuth 2.0 Token Exchange Under RFC 8693
The feature lets a service or AI agent obtain a separate token for a particular service, rather than passing along the user's original credential. The derived token can carry tighter limits and can be issued without a refresh token.
Amazon Cognito now supports OAuth 2.0 token exchange (RFC 8693).1
Services can exchange a user's token for a new token with a narrower scope, single audience, and without a refresh token.1
If an actor token is included, Cognito adds an act claim identifying the intermediary.1
Story
A separate token for calls made on a user's behalfAmazon Cognito has added support for OAuth 2.0 token exchange, the standard described in RFC 8693.1 The change gives services and AI agents a way to obtain a distinct token when they act for a user and need to call another service.1 That replacement credential can be restricted to the downstream service, rather than simply repeating the user's existing token.1 Cognito's announcement describes the exchange as a feature for obtaining a token with limits tailored to a particular service.1 The stated change is a new token-handling capability, not a reported increase in a measured quantity: the announcement provides no adoption or performance figures.1
Before this capability, a service that called another service for a user had two described options: pass along the user's original token or create its own way to issue tokens.1 The first approach kept the original credential in the downstream call, while the second required the service to supply separate token-minting logic.1 The new flow instead allows that service or an AI agent to trade the user's token for a different one intended for a specific downstream service.1 The announcement therefore distinguishes the new exchange mechanism from both forwarding the original credential and building an independent minting process.1 It does not provide counts for how many systems used either earlier approach, so the scale of the previous practice cannot be quantified from this information.1
A derived token may have a more limited scope than the user's starting token, which means its permitted scope can be reduced for the next service call.1 It can also be tied to one audience, a setting the announcement associates with the new token.1 Cognito can issue this token without including a refresh token, another distinction from the original credential arrangement described in the announcement.1 These are available token properties, rather than claims that every exchange must use the narrowest scope or omit a refresh token.1 The announcement does not specify a numerical scope size or define how audiences are selected, so those details cannot be compared here.1
The people whose credentials feature in the described flow are users whose tokens are exchanged while another service or an AI agent acts for them.1 The intermediary makes a call to a downstream service using the newly obtained token, rather than being the user whose original token is exchanged.1 The feature is relevant to that intermediary and to the service receiving its request, because the token is meant to be scoped to the receiving service.1 The announcement gives no number of users, services, agents, or exchanges, and it does not describe a method for counting them.1 Its account is about the roles in a token flow and the properties of the resulting credential, not about measured use by a population.1
When an actor token is included in the exchange, Cognito adds an act claim to the resulting token.1 That claim identifies the intermediary involved in the exchange, according to the service description.1 The claim is conditional on including an actor token; the announcement does not say that it appears in every exchanged token.1 This gives the described token a field that records who acted between the user and the downstream service when that condition applies.1 The announcement does not state additional effects or enforcement behavior for that claim, so its described role here is identification of the intermediary.1
Cognito's example uses a Model Context Protocol server that exchanges a user's credential for a token restricted to a backend API.1 In that flow, the server is the intermediary acting for the user, and the backend API is the service the new token is intended to reach.1 If the exchange includes an actor token, the act claim records the MCP server as the actor in this example.1 The example brings together the limited-scope token and the intermediary-identification claim without saying that every deployment must use an MCP server.1 It illustrates a route from a user's credential through an intermediary to a backend API, with the exchanged token aimed at that API.1
There are two named ways to perform the exchange: through the token endpoint or by using the new GetDerivedToken API.1 The announcement presents these as alternative access paths for obtaining an exchanged token, not as separate token properties.1 It does not provide comparative details about the endpoint and API, such as differences in their operation or the situations suited to each.1 Both methods sit within the same capability described: exchanging a user's token for a new credential used with a downstream service.1 The available information names both methods but offers no figures for requests, latency, or relative use.1
Token exchange is offered on Cognito's Essentials and Plus feature plans.1 Its stated regional availability covers every AWS Region in which Amazon Cognito is available.1 The plan and regional conditions define where the feature can be accessed, while the announcement supplies no region-by-region list or usage totals.1 Cognito's availability is the relevant limit in that statement; it does not assert availability in places where the service itself is absent.1 No other plan is identified as eligible in the supplied information, which names Essentials and Plus specifically.1
Taken together, the update adds a standardized exchange option to Cognito for service-to-service calls made on a user's behalf.1 Its described controls include a narrower scope, a single audience, and issuance without a refresh token, while an included actor token allows an intermediary to be identified.1 The example shows those ideas in a concrete arrangement: an MCP server obtains a token for a backend API while being named as the actor.1 The feature is available through either the token endpoint or GetDerivedToken, for users of the Essentials and Plus plans in Cognito's available AWS Regions.1 The announcement describes a change in how an intermediary can obtain and shape a credential for a downstream call, but offers no evidence about uptake or outcomes after its introduction.1
Structure
Who is connected to whom- 1Amazon Cognito
- ← usesFact
- enables →Fact
- ← usesFact
- ← usesFact
- ← usesFact
Impact
Spreading outward, level by level- Level 1Immediate capability
Services and AI agents can obtain narrowly scoped tokens for downstream calls, reducing reliance on forwarding original tokens or custom minting logic.1
Fact - Level 2Security improvement
Delegating calls with exchanged tokens limits exposure of the original user token, potentially enhancing security.
Analysis
Sources
What each source supportsWritten by AI from the sources listed below: every fact was checked word for word against its source, and inference is marked apart. How we write