Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 4.43 KB

tokenexchangerequest.mdx

File metadata and controls

17 lines (13 loc) · 4.43 KB
title TokenExchangeRequest

RFC 8693 token exchange request body (application/x-www-form-urlencoded).

Fields

Field Type Required Description Example
federation_policy_id str ✅ The federation policy to evaluate, from Settings → Workload identity. Binds the exchange to one organization. 4b2f7d1e-8c3a-4e5f-9a6b-1c2d3e4f5a6b
grant_type components.GrantType ✅ Must be urn:ietf:params:oauth:grant-type:token-exchange. urn:ietf:params:oauth:grant-type:token-exchange
requested_token_type Optional[components.RequestedTokenType] ➖ Optional; when present must be urn:ietf:params:oauth:token-type:access_token. urn:ietf:params:oauth:token-type:access_token
scope Optional[components.TokenExchangeRequestScope] ➖ Optional; when present must match the policy's key: management for a management key, inference otherwise. inference
subject_token str ✅ The JWT issued by your identity provider. <jwt from your identity provider>
subject_token_type components.SubjectTokenType ✅ Must be urn:ietf:params:oauth:token-type:jwt. urn:ietf:params:oauth:token-type:jwt