microsoft / microsoft/fhir-server

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

Open
#3,980 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Review
Dominant language
TSQL
Stars
1.4k
Forks
592
Avg merge
2d 7h
Merged PRs (30d)
41

Description

Hi,

I download the smart applicaiton on my PC locally, and i try to use the local application Smart to connect to fhir service.
 The SPA redirect-URI is http://localhost:5000/sampleapp/index.html, which is exposed locally
 
I just try the test with your doc: https://learn.microsoft.com/en-au/azure/healthcare-apis/fhir/smart-on-fhir
The **cross-origin is enabled and well configured** in fhir server based on the doc

here are the errors:
scenario 1 : APP Error : AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.
When I use the SAP authentication:

scenario 2 : App Error :
When I use the Web Authentication, However, when I tried the web platform registration, I encountered another error. I believe using a single-page application for authentication is the recommended approach
 
so how to resolve this pb when we use SAP authentification?

Regards,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked SMART on FHIR documentation and compare the localhost:5000/sampleapp/index.html redirect URI, cross-origin setting, and SPA or web platform registration. Reproduce the reported SAP and web-authentication scenarios, using successful authorization-code redemption as the completion check.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.