What is OAuth token exchange?

Definition

A service can use token exchange when calling another service on a user's behalf. The authorization server evaluates the request under its policies and may issue a token appropriate for the intended recipient and permissions.

The protocol supports delegation and impersonation, whose identity meanings differ. Exchange does not automatically narrow permissions or establish trust; those properties depend on server policy, token handling and resource enforcement.

ELI5

Token exchange asks a trusted service for a credential suited to the next part of a job, using an existing credential as part of the request.

For example, a scheduling assistant could request access for a calendar service rather than reuse a credential intended for a different system. The server decides what access to allow.

Does exchange automatically grant every requested permission?

No. The authorization server decides whether to issue a token and which access its policies permit.

Does delegation hide the acting service's identity?

Delegation can identify an actor working for a subject. Impersonation has different identity semantics within the authorized context.

  1. Kim Maida in a blue top looks toward the blue and white "AGENT ACCESS" headline against black.
Definition card for OAuth token exchange: What is OAuth token exchange?

OAuth token exchange is a protocol for presenting a security token to an authorization server and requesting another token suitable for a different resource or access context.