Token Endpoint
Changed onExchange a refresh token, JWT assertion, or authorization code for tokens.
Error responses speak the RFC 6749 §5.2 dialect (top-level error + error_description), NOT platform Problem Details — reshaped by _TokenRoute. Malformed/missing parameters answer invalid_request; failed client authentication answers invalid_client (status 401 with a WWW-Authenticate: Basic challenge when the client attempted HTTP Basic, 400 otherwise). On the refresh arm, a revoked consent grant answers invalid_grant with error_description: "consent grant has been revoked" — terminal; restart the authorization flow.
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /oauth/token
- Auth: none required
Request body
Response
Successful Response
Example response
{
"access_token": "at_example-access-token",
"expires_in": 3600,
"id_token": "example-id-token",
"refresh_token": "rt_example-refresh-token",
"scope": "apis:read capabilities:execute",
"token_type": "bearer"
}Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info
- breaking
removed the media type
application/problem+jsonfor the response with the status - info
added the non-success response with the status
- info
removed the non-success response with the status
- breaking