microsoft / microsoft/CopilotStudioSamples

SharePointSSO login only returning "Proof Key for Code Exchange" error

Open
#271 1 comment 0 reactions 0 assignees View on GitHub

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:

  1. click on the button in the SharEPoint site to launch the chat
  2. click on the "LOGIN" button

Expected behavior
After clicking on "Login" I would expect it to authenticate and return to the bot.

Screenshots
Image
Image

App Registration (SPA):
Image

Bot Security:
Image

Changing the parameters in the URL above to "response_type=token&scope=openid" results in:
Image

Contributor guide

No contributing guide indexed for this repository

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.