400 bad request error while Sign In
See original GitHub issueCore Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.22.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
1.3.0
Public or Confidential Client?
Public
Description
Can’t be able to do azure b2c login with two tabs.
Reproduce the error: Step: 1 Open the login page in two tabs. Step 2: Now go to the first tab and do login and left the tab as it is. Step 3: Now go to second tab and try to do login Step 4: See the network tab of second you will get error of 400 bad request
Error Message
Msal Logs
No response
MSAL Configuration
const msalConfig: Configuration = {
auth: {
clientId: xyz....,
authority: b2cPolicies.authorities.signUpSignIn.authority,
knownAuthorities: [b2cPolicies.authorityDomain],
redirectUri: process.env.REACT_APP_AUTH_REDIRECT_URI,
postLogoutRedirectUri: process.env.REACT_APP_AUTH_REDIRECT_URI,
navigateToLoginRequestUrl: true
},
cache: {
cacheLocation: BrowserCacheLocation.SessionStorage,
storeAuthStateInCookie: isIE
}
}
Relevant Code Snippets
----
Reproduction Steps
Step: 1 Open the login page in two tabs. Step 2: Now go to the first tab and do login and left the tab as it is. Step 3: Now go to second tab and try to do login Step 4: See the network tab of second you will get error of 400 bad request
Expected Behavior
It should not return 400 error instead it should do login as usual.
Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari, Internet Explorer, None (Server), Other
Regression
No response
Source
Internal (Microsoft)
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
@anjalikalsariya Can you please share verbose logs on email mentioned on my profile, if they are not showing up for some reason, please update.
@anjalikalsariya 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.