OAuth token exchange (RFC 8693)

Theme: Protocols

Reviewed

In short: OAuth token exchange is a standard way to trade one token for another, often narrower or for a different audience. In the desk's scores it falls under no standing credentials, weighted 20%, where NewCore, Aembit, Descope and Cyera Identity score highest at 9 out of 10.

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.

Top five on No standing credentials for agents, out of 10
ProductScore
NewCore9
Aembit9
Descope9
Cyera Identity9
Astrix Security8

All 45 glossary terms

Sources