IDMobile token success response
If you are authorized by the server, the API returns a JSON dictionary containing the following keys:
| Key | Description | Type |
|---|---|---|
| access_token | Temporary token used to call the service. | STRING |
| token_type | Bearer: authorized token type. |
STRING |
| expires_in | Token validity period, in seconds. | STRING |
| refresh_token | Token used to extend your session. | STRING |
Example:
{
"access_token": "TK948869a6f873adb622enhoaGeVY2iRaptqlmpplGeWZA",
"token_type": "Bearer",
"expires_in": "300",
"refresh_token": "*TK9bdd05f8e9d3c905834bdeqaUlGFll2iRaplll29mZmtkZQ"
}
IDMobile token error responses
| Error type | Request example | Response type |
|---|---|---|
Missing licence parameter |
https://{SERVER_ADDRESS}/ACCESS_TOKEN/?client_secret=abcd&grant_type=client_idmobile |
400 Error (Invalid Request) |
Empty licence parameter |
https://{SERVER_ADDRESS}/ACCESS_TOKEN/?client_secret=abcd&grant_type=client_idmobile&licence= |
400 Error (Invalid Request) |
Incorrect licence value |
https://{SERVER_ADDRESS}/ACCESS_TOKEN/?client_secret=abcd&grant_type=client_idmobile&licence={INCORRECT_LICENCE_CODE} |
400 Error (Invalid Client) |
Missing or empty client_secret parameter |
https://{SERVER_ADDRESS}/ACCESS_TOKEN/?grant_type=client_idmobile&licence={LICENCE_CODE}https://{SERVER_ADDRESS}/ACCESS_TOKEN/?client_secret=&grant_type=client_idmobile&licence={LICENCE_CODE} |
400 Error (Invalid Request) |
Missing or incorrect grant_type parameter |
https://{SERVER_ADDRESS}/ACCESS_TOKEN/?client_secret=abcd&licence={LICENCE_CODE}https://{SERVER_ADDRESS}/ACCESS_TOKEN/?client_secret=abcd&grant_type=test&licence={LICENCE_CODE} |
400 Error (Invalid Request) |
| Parameter typo | https://{SERVER_ADDRESS}/ACCESS_TOKEN/?client_scret=abcd&grant_type=client_idmobile&licence={LICENCE_CODE} |
500 Error |
Related to