You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Trying to do OAuth with react SPA as the sample project demonstrated, but getting the following error message.
The react SPA project in the sample mentions no client secret, and only client ID is required. I registered my SPA APP and fulfilled the authConfig.js with info provided in AAD, and logged in via the following code:
The popup window displayed correct stuff and asked me if I agree to allow my APP to access my data. But after my confirmation, the login progress failed with the following error message.
Wondering Is there something I missed or doing wrongly in configuring the sample project?
Error Message
ServerError: invalid_client: 70002 - [2020-09-15 05:42:02Z]: AADSTS70002: The provided request must include a 'client_secret' input parameter.
Trace ID: e4cd2ef4-dd68-48fe-b61f-269d4ca30500
Correlation ID: 87b76c67-1b1b-4b88-b489-05c690f52498
Timestamp: 2020-09-15 05:42:02Z - Correlation ID: 87b76c67-1b1b-4b88-b489-05c690f52498 - Trace ID: e4cd2ef4-dd68-48fe-b61f-269d4ca30500
at ServerError.AuthError [as constructor] (http://localhost:3000/static/js/1.chunk.js:450:20)
at new ServerError (http://localhost:3000/static/js/1.chunk.js:3905:24)
at ResponseHandler.validateTokenResponse (http://localhost:3000/static/js/1.chunk.js:4418:13)
at AuthorizationCodeClient.<anonymous> (http://localhost:3000/static/js/1.chunk.js:4652:29)
at step (http://localhost:3000/static/js/1.chunk.js:398:17)
at Object.next (http://localhost:3000/static/js/1.chunk.js:329:14)
at fulfilled (http://localhost:3000/static/js/1.chunk.js:281:24)