Issue Token
Provides a token endpoint as defined in RFC 6749. Supported grant types:
- urn:ietf:params:oauth:grant-type:token-exchange - Exchanges incoming token based on the spec and current client authorization data.
This operation supercedes com.vmware.vcenter.tokenservice.TokenExchange#exchange. The REST rendering of the newer operation matches RFC8693’s definition for both input and output of the operation.
Request
URLURL
Header Parameters
Header Parameters
Request Body
Token.IssueSpec structure containing arguments that define the exchange process. The Token.IssueSpec structure contains arguments required for token exchange.
Response
Response BodyResponse Body
TokenInfo structure that contains a newly issued token.
{
"access_token": "string",
"expires_in": 0,
"issued_token_type": "string",
"refresh_token": "string",
"scope": "string",
"token_type": "string"
}
The access token issued by the authorization server.
A case-insensitive value specifying the method of using the access token issued.
The validity lifetime, in seconds, of the token issued by the server. unset if not applicable for issued token.
An identifier which indicates the type of the access token in the TokenInfo.access-token field. unset if not the result of a token-exchange invocation; otherwise, required.
The refresh token, which can be used to obtain new access tokens. unset if not applicable to the specific request.
Scope of the issued access token. The value of the scope parameter is expressed as a list of space- delimited, case-sensitive strings. The strings are defined by the authorization server. If the value contains multiple space-delimited strings, their order does not matter, and each string adds an additional access range to the requested scope. unset if the scope of the issued security token is identical to the scope requested by the client.