OAuth2 success
If you are authorized by the server, you will receive a response in the form of a JSON dictionary containing the following keys:
Key | Description | Type |
access_token | Temporary Service Call Licence | STRING |
token_type | "Bearer": allowed | STRING |
expires_in | Timeout (in seconds) | STRING |
refresh_token | Token to extend your license | STRING |
Example:
Example:
{
"access_token": "TK948869a6f873adb622enhoaGeVY2iRaptqlmpplGeWZA",
"token_type": "Bearer",
"expires_in": "300",
"refresh_token": "*TK9bdd05f8e9d3c905834bdeqaUlGFll2iRaplll29mZmtkZQ"
}
OAuth2 error
Error type | Request | Response type |
Missing client_id parameter | https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=abcd&scope=client_address | 400 Error (Invalid Request) |
Empty client_id parameter | https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=abcd&scope=client_address&client_id= | 400 Error (Invalid Request) |
Incorrect client_id (expired, out of scope, nonexistent) | https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=abcd&scope=client_address&client_id={INCORRECT_LICENCE_CODE} | 400 Error (Invalid Client) |
client_id not authorizing the request of the "scope" | https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=abcd&scope=client_address&client_id={LICENCE_CODE_NOT _AUTHORIZED} | 400 Error (unauthorized client) |
Unknown "scope" parameter value | https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=abcd&scope=client &client_id={LICENCE_CODE} | 400 Error (unsupported grant type) |
Missing or empty “client_secret” parameter | https://{SERVER_ADDRESS}/oauth/access_token/?scope=client_address&client_id={LICENCE_CODE} | 400 Error (Invalid Request) |
https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=&scope=client_address&client_id={LICENCE_CODE} | ||
Missing or empty “scope” parameter | https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=abcd&client_id={LICENCE_CODE} | 400 Error (Invalid Request) |
https://{SERVER_ADDRESS}/oauth/access_token/?client_secret=abcd&scope=&client_id={LICENCE_CODE} | ||
Error on a parameter | https://{SERVER_ADDRESS}/oauth/access_token/?client_scret=abcd&scope=client_address&client_id={LICENCE_CODE} | 500 Error |
Related to