Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS90056

BadResourceRequest

Alternative forms: 90056

Code AADSTS90056 · An issue reported by Microsoft Entra ID.

BadResourceRequest - To redeem the code for an access token, the app should send a POST request to the /token endpoint. Also, prior to this, you should provide an authorization code and send it in the POST request to the /token endpoint. Refer to this article for an overview of OAuth 2.0 authorization code flow. Direct the user to the /authorize endpoint, which will return an authorization_code. By posting a request to the /token endpoint, the user gets the access token. Check App registrations > Endpoints to confirm that the two endpoints were configured correctly.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.