OAuth Tokens (sts/v1)
Exchange an OAuth Token
Use this operation to exchange an access token (JWT) issued by an external identity provider for an access token (JWT) issued by Confluent.This enables the use of external identities to access Confluent Cloud APIs.
post/sts/v1/oauth2/token
Request
- Base URLhttps://api.confluent.cloud
- URLhttps://api.confluent.cloud/sts/v1/oauth2/token
- Auth
- HTTP basic
- or HTTP basic
- or OAuth 2Client credentialsToken URL: https://api.confluent.cloud/sts/v1/oauth2/token
Request body application/x-www-form-urlencoded
Example request
{
"id": "dlz-f3a90de",
"metadata": {
"self": "https://api.confluent.cloud/sts/v1/token-exchange-requests/ter-12345",
"resource_name": "crn://confluent.cloud/organization=9bb441c4-edef-46ac-8a41-c49e44a3fd9a/token-exchange-request=ter-12345",
"created_at": "2006-01-02T15:04:05-07:00",
"updated_at": "2006-01-02T15:04:05-07:00",
"deleted_at": "2006-01-02T15:04:05-07:00"
},
"grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
"subject_token": "test_jwt_token",
"identity_pool_id": "pool_1",
"subject_token_type": "urn:ietf:params:oauth:token-type:jwt",
"requested_token_type": "urn:ietf:params:oauth:token-type:access_token"
}Response
access token used to access public control plane api
Example response
{
"issued_token_type": "urn:ietf:params:oauth:token-type:access_token",
"token_type": "Bearer",
"expires_in": 3600
}Changes
No recorded changes to this operation across all 7 revisions of this API.