Access Token Request
The client makes a request to the token endpoint by sending the following parameters using the application/x-www-form-urlencoded format with a character encoding of UTF-8 in the HTTP POST request:
grant_type | Required. The value must be set to authorization_code. |
code | Required. The authorization code received from the authorization server. |
redirect_uri | Required, if the redirect_uri parameter was included in the authorization request. The value must match the redirect_uri value sent in the authorization request. |
client_id | Required, if the client is not authenticating with the authorization server. |
scope | Optional. Specifies the scope of the access request. |
Access Token Request Example
To request an access token for the authorization code flow, the client makes the following HTTP POST request using TLS:
POST /asg/oauth2/access_token HTTP/1.1 Host: server.example.com Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSbIA &redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb
Copyright © Cloud Software Group, Inc. All rights reserved.