Hi there,
When I supply an invalid client id (one that doesn’t exist) to the /token endpoint with the “client_credentials” grant type, I get a 400 response, but the JSON payload does not use the OAuth2 snake_case response. Instead it is the Okta camelCase response:
{
"errorCode": "invalid_client",
"errorSummary": "Invalid value for 'client_id' parameter.",
"errorLink": "invalid_client",
"errorId": "oaeAzmar7W-RBO7bTiWZ--fmQ",
"errorCauses": []
}
I was expecting something along the lines of this error, which is returned by Okta when you have a valid client but invalid credentials:
{
"error": "invalid_client",
"error_description": "The client secret supplied for a confidential client is invalid."
}
Should I code these different response bodies into my app? I wonder if this is not compliant with the OAuth2 standard (RFC 6749: The OAuth 2.0 Authorization Framework).
Thank you.