/
Integrity verification failed on token endpoint

Integrity verification failed on token endpoint

Problem

When exchanging an authorization code for an access token using a post request to the token endpoint,  the following error occurs:


{"error_description":"Integrity verification failed","error":"invalid_grant"}

Solution

This error indicates that the authorization code used has been mangled somehow or encoded badly. Verify that the value in the code parameter returned from the authorization request matches exactly the value used.



Related content

OAuth 2.0 and OpenID Connect metadata - SSO
OAuth 2.0 and OpenID Connect metadata - SSO
Read with this
Troubleshooting OAuth2 and OIDC error responses
Troubleshooting OAuth2 and OIDC error responses
More like this
Adding scope details in token response
Adding scope details in token response
More like this
Resource owner password credentials grant
Resource owner password credentials grant
More like this
SAML 2.0 assertion grant - SSO
SAML 2.0 assertion grant - SSO
More like this
SAML 2.0 assertion grant - SSO
SAML 2.0 assertion grant - SSO
More like this