Miscellaneous
OAuthTokenExchange
Token
Exchanges a presented credential for a Pulumi access token. Two grant types are supported, selected by the grant_type field in the request body.
Token exchange (RFC 8693). Exchanges an external OIDC identity provider token for a Pulumi access token. Request body:
- grant_type: must be urn:ietf:params:oauth:grant-type:token-exchange
- audience: a URN identifying the target org (e.g., urn:pulumi:org:{ORG_NAME})
- subject_token: the OIDC identity token from the external provider
- subject_token_type: must be urn:ietf:params:oauth:token-type:id_token
- requested_token_type: one of urn:pulumi:token-type:access_token:organization, ...team, ...personal, or ...runner
- scope (optional): depends on the requested token type. For organization, must be empty or admin. For team, must be team:TEAM_NAME. For personal, must be user:USER_LOGIN. For runner, must be runner:RUNNER_NAME.
- expiration (optional): token lifetime in seconds.
Refresh token (RFC 6749 §6). Exchanges a Pulumi-issued refresh token for a short-lived on-behalf-of access token bound to the user the refresh token resolves to. Request body:
- grant_type: must be refresh_token
- refresh_token: the refresh-token value previously issued by Pulumi.
Both grants return the same response shape: access_token, issued_token_type, token_type, expires_in, scope, and refresh_token.
post/api/oauth/token
Request
- Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
- URL: https://api.pulumi.com/api/oauth/token
- Auth: none declared
Request body
object required
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.