OfficeDev / Copilot-for-M365-Samples

Microsoft Copilot for Microsoft 365 samples
https://aka.ms/extendcopilotm365
MIT License
127 stars 83 forks source link

[Bug]: 01 Unauthorized Error in cext-trey-research-auth TypeScript Sample #181

Open Jegadeesh-MSFT opened 3 weeks ago

Jegadeesh-MSFT commented 3 weeks ago

Sample

cext-trey-research

Description

During testing of the cext-trey-research-auth TypeScript sample, we encountered a 401 Unauthorized error. All steps outlined in the README for creating the OAuth client registration were followed accurately. Despite this, the application is still returning the error during the authentication process.

Sample error : image

Copilot error : image

Steps to reproduce

Please follow the steps provided in cext-trey-research-auth readme file and test it using copilot

Expected results

The authentication process should complete successfully without returning a 401 Unauthorized error.

Actual results

image

Additional Info

No response

garrytrinder commented 2 weeks ago

Thanks for raising the issue @Jegadeesh-MSFT

I am able to repro and this will require further investigation, however this sample needs a major update IMO to bring it line with the latest tooling improvements to simplify the setup and remove the manual steps though automation. I think time would be better spent updating the sample.

/cc @BobGerman

BobGerman commented 2 weeks ago

I agree - this can be reduced to an F5 experience. I was going to do it @garrytrinder but have been delayed by a health issue; @garrytrinder please LMK if you have time to tackle this or I will do it hopefully next week.