Unauthorized (401)¶
A 401
error is returned when a user tries to get an OAuth2 token using an invalid key-secret pair.
Sample JSON¶
The call POST /oauth/token?grant_type=client_credentials
should use basic auth, with the client’s key and secret
as the username and password, respectively. If this key and secret are invalid, a 401
will be returned with the
following JSON body:
{
"timestamp": 1520959116710,
"status": 401,
"error": "Unauthorized",
"message": "Bad credentials",
"path": "/oauth/token"
}