How to fix AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.

Anonymous
2024-01-08T06:12:58.1866667+00:00

AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.

I migrated to authorization code flow as suggested at portal. I can't revert.
Since then, I see the above issue.

I use spring-cloud-azure-starter-active-directory that auto-configures all properties with default values. How to add code_challenge etc?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,612 questions
0 comments No comments
{count} vote

Accepted answer
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,521 Reputation points Moderator
    2024-01-08T06:24:35.48+00:00

    Hello @Nagadheeraj M , the Entra ID error AADSTS9002325 can be thrown after switching your Entra ID app registration redirect URL to SPA. Move it back to Web and the error should be gone. For how to follow the steps detailed at Configure platform settings.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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