Custom app: problems signing in with Azure AD

Ruben Bernardes 1 Reputation point
2020-12-26T10:37:17.26+00:00

Hi,

I created a React app authenticating with Azure AD following this tutorial: https://learn.microsoft.com/en-us/graph/tutorials/react?tutorial-step=3

Everything worked, but once I upgraded my account to allow adding new users, the authentication stopped working. Eventually, my registered app disappeared and I created a new one following the same steps of the tutorial and updated the App_ID in my code.

I've since then received this error message in the console:

ServerError: invalid_grant: 70000 - [2020-12-26 10:32:40Z]: AADSTS70000: The provided 'code_verifier' input value does not match the original 'code_challenge.'

Trace ID: 8018cbc5-43b8-4d7f-a898-a981dfff9c00

Correlation ID: 5c9cf620-cfe4-4c1b-b9aa-0bdd97500102

Timestamp: 2020-12-26 10:32:40Z - Correlation ID: 5c9cf620-cfe4-4c1b-b9aa-0bdd97500102 - Trace ID: 8018cbc5-43b8-4d7f-a898-a981dfff9c00

This is my code:

51217-screenshot-2020-12-26-at-113545.png

Thanks in advance

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.