semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Authentication Problem: Unable to sign in with a Microsoft Account

Open jansennrw opened this issue 2 years ago • 2 comments

Describe the bug/Problem

I have followed the step as per the README.MD but on the final step, I'm unable to authenticate accordingly. Can please help?

Additional info:

  • Dotnet 6 and 7 installed
  • OS: Windows 10

==================================== Screenshot 1. http://localhost:3000/ preview image

(The Authentication button is not clickable)

2. Dotnet run as per intended image

3. Yarn run as per intended image

jansennrw avatar May 10 '23 03:05 jansennrw

me too

**Desktop OS:Centos 7 commit 6afcbe25b9aa63d9952f63936962784ee4434510 donet 6 yarn --version 1.22.19 node -v v16.18.1

image AuthError.ts:49 Uncaught (in promise) BrowserAuthError: pkce_not_created: The PKCE code challenge and verifier could not be generated. Detail:TypeError: Cannot read properties of undefined (reading 'digest') at BrowserAuthError.AuthError [as constructor] (AuthError.ts:49:1) at new BrowserAuthError (BrowserAuthError.ts:199:1) at BrowserAuthError.createPkceNotGeneratedError (BrowserAuthError.ts:211:1) at PkceGenerator. (PkceGenerator.ts:67:1) at step (pluginsSlice.ts:61:1) at Object.throw (pluginsSlice.ts:61:1) at rejected (pluginsSlice.ts:61:1)

Suevivian avatar May 11 '23 07:05 Suevivian

Ah, I just realized that the problem is on .env file...

Need to follow this step carefully:

Open a terminal and navigate to samples/apps/copilot-chat-app/webapp Copy env.example into a new file .env and update the REACT_APP_AAD_CLIENT_ID with the AAD application (Client) ID created above. For example:

REACT_APP_BACKEND_URI=https://localhost:40443/ REACT_APP_AAD_CLIENT_ID={Your Application (client) ID} REACT_APP_AAD_AUTHORITY=https://login.microsoftonline.com/common

jansennrw avatar May 11 '23 09:05 jansennrw

I will close this out.

evchaki avatar May 11 '23 21:05 evchaki