# Token exchange and backchannel approval for your app

> Turn on OAuth token exchange or CIBA for an environment, and what your app gets back.

_Source: https://id.identvia.com/help/developers/delegation-for-developers_

Alongside AgentPass, Identvia supports three standards for delegation. An administrator can switch each of them off server-wide, and you opt in per environment in the developer console.

## Token exchange (RFC 8693)

Swap a user's access token for a narrower, shorter-lived one that names the agent acting, in the `act` claim. Enable **Token exchange** on a confidential environment, then call the token endpoint with `grant_type=urn:ietf:params:oauth:grant-type:token-exchange`. Scopes can only shrink, and the new token never outlives the original. Revoking the original also revokes everything exchanged from it.

## Rich Authorization Requests (RFC 9396)

Send `authorization_details` with the authorization request to describe a specific task. People see it on the consent screen, and it is carried into the access token.

## CIBA (OpenID Connect backchannel)

Set **Backchannel approval** to *Poll* or *Ping* on a confidential environment. Your server posts to `/oauth/bc-authorize` with the user's email as `login_hint` and a `binding_message`, then polls the token endpoint (or waits for a ping). The person approves in their Identvia inbox with a passkey or authenticator app.

Full details, with PHP SDK examples, are in the [delegation guide](https://id.identvia.com/developers/docs/delegation).
