OAuth token exchange (RFC 8693)
Theme: Protocols
Reviewed
How it works
The client sends a request to the authorization server's token endpoint with a subject token, which represents the party whose authority is being used. It can also send an actor token, which represents the party doing the acting. It names the audience or resource it wants a token for.
The authorization server checks policy and issues a new token. That token can carry an act claim showing who is acting for whom, and nested act claims can record a chain. The new token is usually shorter-lived and limited to one service. RFC 8693 defines the request and response format but leaves the policy decisions to the server.
Many identity providers and gateways implement token exchange. Each applies its own rules about which exchanges are allowed and how far a chain may extend.
Why it matters for AI agents
Agents often start with a person's token and need to call several services. Token exchange lets each hop get a token scoped to that hop, carrying both the person and the agent. That avoids passing the original token around and keeps a record of delegation in each token. Token exchange also reduces blast radius. Each hop holds only a narrow token for one service. If one service leaks a token, it cannot be used elsewhere. Buyers should ask whether a product uses token exchange or simply forwards the original token.
Example
An agent receives a user's token. Before calling the payroll API, it exchanges that token, with its own agent token as the actor, for a payroll token valid for minutes. The payroll API sees both the user and the agent.
Related terms
- On-behalf-of delegationOn-behalf-of delegation is when an agent acts with a person's authority, and the systems it calls can see both the person and the agent.
- Delegation chainA delegation chain is the sequence of parties a request passes through, from the original person to each agent that acted.
- ID-JAG (Identity Assertion JWT Authorization Grant)ID-JAG is an IETF draft grant: an identity provider signs a JWT assertion that a client exchanges for another app's access token.
- Short-lived credentialsShort-lived credentials are tokens, keys or certificates that expire quickly, so a leaked one stops working soon after it is stolen.
Where it shows up in our scores
Criterion: No standing credentials for agents, weighted 20% of the total. It asks: Does the agent receive short-lived, scoped credentials instead of holding a long-lived secret?
Highest on this criterion: NewCore, Aembit, Descope and Cyera Identity, at 9 out of 10. Computed from the current scores on the AI agent access governance ranking.
| Product | Score |
|---|---|
| NewCore | 9 |
| Aembit | 9 |
| Descope | 9 |
| Cyera Identity | 9 |
| Astrix Security | 8 |
Sources
- IETF RFC 8693: OAuth 2.0 Token Exchange: https://datatracker.ietf.org/doc/html/rfc8693