Exchange a workload identity subject token

View as Markdown
Exchange a configured workload identity subject token for a NeMo Platform access token.

Request

This endpoint expects an object.
grant_typeenumRequired
OAuth 2.0 token exchange grant type.
Allowed values:
client_idstringRequired
Workload token exchange OAuth client ID.
subject_tokenstringRequired
JWT subject token to exchange.
subject_token_typeenumRequired
Token type identifier for the subject token.
Allowed values:
requested_token_typeenumOptionalDefaults to urn:ietf:params:oauth:token-type:access_token
Requested token type identifier for the issued token.
Allowed values:
audiencestringOptional
Requested audience for the issued access token.
scopestringOptional

Space-separated scopes requested for the issued access token.

Response

Successful Response
access_tokenstring
JWT access token minted for the workload identity.
issued_token_typestring
Token type identifier for the issued token.
token_typestring
OAuth token type used in Authorization headers.
expires_ininteger
Lifetime of the access token in seconds.
scopestring

Space-separated scopes granted to the access token.

Errors

400
Bad Request Error
401
Unauthorized Error