microsoft / microsoft/CopilotStudioSamples
SharePointSSO login only returning "Proof Key for Code Exchange" error
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 797
- Forks
- 491
- PR merge metrics
- No merged PRs in 30d
Description
@adilei
What sample tool are you using?
SharePointSSOComponent
Describe the bug
No matter how I set up the component or configure the apps I am receiving a
AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.
error when trying to log into the bot. I have spent 2 days on this and would love to get it working!
To Reproduce
Steps to reproduce the behavior:
- click on the button in the SharEPoint site to launch the chat
- click on the "LOGIN" button
Expected behavior
After clicking on "Login" I would expect it to authenticate and return to the bot.
Screenshots
App Registration (SPA):
Bot Security:
Changing the parameters in the URL above to "response_type=token&scope=openid" results in:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the SharePointSSOComponent login configuration and the authorization URL parameters shown in the issue. Reproduce the LOGIN flow from the SharePoint site and investigate the Proof Key for Code Exchange requirement for cross-origin authorization code redemption. Done means authentication returns to the bot without the AADSTS9002325 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100