Closed Neutrino-Sunset closed 3 years ago
@Neutrino-Sunset Please use your own clientId and authority. The default values in our samples are used for internal testing.
@Neutrino-Sunset This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.
Sample provided in quickstarts for Angular SPA fails due to below, apparently it is looking for client_secret and no where in microsoft docs it is mentioned on where to provide the same.
Reference configuration from microsoft tutorials as well (client secret not provided) https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/blob/main/1-Authentication/2-sign-in-b2c/SPA/src/app/auth-config.ts
core.js:5980 ERROR ServerError: invalid_client: 7000218 - [2021-08-25 18:31:23Z]: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.
Trace ID: f0a9b48e-f070-464e-a645-9315cbab8601
Correlation ID: f79a1841-35c0-4ede-b43f-b0dde37f8145
Timestamp: 2021-08-25 18:31:23Z - Correlation ID: f79a1841-35c0-4ede-b43f-b0dde37f8145 - Trace ID: f0a9b48e-f070-464e-a645-9315cbab8601
at ServerError.AuthError [as constructor] (AuthError.ts:40)
at new ServerError (ServerError.ts:14)
at ResponseHandler.validateTokenResponse (ResponseHandler.ts:99)
at AuthorizationCodeClient.
@niravparikh05 You need to register your replyUrl as type "SPA": https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/blob/main/1-Authentication/2-sign-in-b2c/README.md#register-the-app-msal-angular-spa
Thanks a lot for your response. Much appreciated.
I had both web and spa selected and hence the issue.
Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.16.1
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2.2
Description
The Angular 12 sample here does not work.
Error Message
Attempting to login using the Redirect method reports
That Microsoft account doesn’t exist. Enter a different account or get a new one.
Msal Logs
I don't know how to do that.
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
npm i
npm start
http:localhost:4200
Login > Redirect
Expected Behavior
You should be logged in and able to access your profile.
Identity Provider
Other
Browsers Affected (Select all that apply)
Chrome
Regression
No response
Source
External (Customer)