Response Errors in Step Two and in the Refresh Token Response
The following table lists errors that may occur in Step Two of the OAuth 2.0 authorization code grant flow and in the response to the refresh token request.
The JSON format for the response is:
{
"error": "<error_value>"
}
Error Value |
Error Description |
Resolution |
---|---|---|
invalid_request |
Any of the following conditions may cause the invalid_request error to occur:
The HTTP status code is 400 Bad Request. |
Ensure that your request is valid and in the correct format. For more information, see Step Two POST Request to the Token Endpoint. |
invalid_client |
Authentication of the client fails. The HTTP status code is 401 Unauthorized. The response header is set to:
Following is an example of the response header:
|
Ensure that you use the correct values of the client ID and client secret for the corresponding integration record. |
invalid_grant |
Any of the following conditions may cause the invalid_grant error to occur:
The HTTP status code is 400 Bad Request. |
Ensure that values of all parameters are correct and matching the values from Step One of the flow. For more information, see Step Two POST Request to the Token Endpoint. |
unauthorized_client |
The value of the authorization grant_type is not allowed for the client. |
Ensure that you use the correct values of the client ID and client secret for the corresponding integration record. |
unsupported_grant_type |
The value of the grant_type parameter is neither The HTTP status code is 400 Bad Request. |
Ensure that the value of grat_type parameter is |
invalid_scope |
The scope cannot be handled. The scope value is malformed, unknown, or invalid. The HTTP status code is 400 Bad Request. |
Ensure that the scope value is in correct format. For more information, see Step Two POST Request to the Token Endpoint. |
For more information about Step Two of the OAuth 2.0 authorization code grant flow, see Step Two POST Request to the Token Endpoint.
For more information about the refresh token request, see Refresh Token POST Request to the Token Endpoint.