On-Behalf-Of Token Exchange

RFC 8693 Token Exchange for Downstream API Access

Configuration
On-Behalf-Of Token Exchange Flow
1
User

Authorize & Get User Tokens

Authorize the user via Auth Code + PKCE flow. The user's access token will be used as the subject token for the on-behalf-of exchange.

/oauth2/default/v1/authorize
Configuration
/oauth2/default/v1/
Configure Okta Domain and Authorization Server to load scopes
cURL Command

          
        
2
Service App

Token Exchange (On-Behalf-Of)

Exchange the user's access token for a new token scoped to a downstream API. The service app acts on behalf of the user.

/oauth2/default/v1/token grant_type=urn:ietf:params:oauth:grant-type:token-exchange
cURL Command

          
        
3
Service App Optional

Test Token with API

Test the exchanged access token by making an authenticated API request to a resource server.

cURL Command