Closed jkytomak closed 3 months ago
Hey @jkytomak the error indicates that the popup was closed by the user or it could be blocked by the browser. When I try to repro the issue, I see a new tab open to enter my credentials. Can you confirm if this tab is opening for you? If not, you need to check if it is being blocked by the browser.
@lalimasharda yes, popup opens normally, but after I select / login with some account from popup, it does not close and those errors come to console / api.
Please see here - popup is not recommended in mobile browsers as support is very limited. What Edge is doing here is "closing" the popup and then re-opening the url in a new tab which causes the original calling page to lose the reference to the frame doing the sign-in. We recommend using redirects for interaction in mobile browsers
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.17.0
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
Mobile Edge browser ends on redirectUrl page after logging with popup. All other browser work fine (for example Edge on desktop and Chrome on mobile).
Error Message
user_cancelled: User cancelled the flow and invalid_client: Authentication failed
MSAL Logs
I was not able to get trace logs from mobile Edge, but you can try the issue by yourself: https://my.humbol.app
Here is console log (about:inspect) from mobile Edge:
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Go to https://my.humbol.app with mobile Edge Click "Sign in with Microsoft" Try to login with any MS account. End up on
ms-redirect
page open and original login page saying that login failed.Expected Behavior
Popup is closed and original login page is logged in to app (if valid Humbol user) or saying "Currently only open for invited users" (if not Humbol user).
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Edge
Regression
No response
Source
External (Customer)