Page created: 30 Sep 2020
|
Page updated: 30 Sep 2020
The client makes a request (HTTP POST) to the token endpoint with the client credentials presented as HTTP Basic authentication:
POST https://localhost:9031/as/token.oauth2 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: Basic Y2NfY2xpZW50OjJGZWRlcmF0ZQ==
grant_type=client_credentials
&scope=edit
Note:
The client credentials can also be provided using the client_id and client_secret parameters in the contents of the POST.
The client will receive a response to this request. If successful, a 200 OK response will be received and the access token will be returned in a JSON structure. A refresh token will NOT be returned to the client.
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"access_token":"zzz...yyy",
"token_type":"Bearer",
"expires_in":14400,
}