msgraph-sample-javascriptspa icon indicating copy to clipboard operation
msgraph-sample-javascriptspa copied to clipboard

login popup is not closed in edge.Gives error :User cancelled the flow.

Open SureshNegi opened this issue 6 years ago • 7 comments

SureshNegi avatar Jun 09 '20 14:06 SureshNegi

I do not reproduce in Edge. Can you post your version please?

jasonjoh avatar Jun 09 '20 14:06 jasonjoh

I get the error in: Edge Chromium Version 83.0.478.45 (Official build) (64-bit)

mgambill avatar Jun 09 '20 21:06 mgambill

i have this edge version and don't see an issue. user cancelled the flow is what you should see in the console window for this case because closing the popup is cancellation. The msal client throws this exception when you close the popup. If you hit sign in again it should re-open.

ddyett avatar Jun 09 '20 22:06 ddyett

I tried to record the issue but then it started working and I can't get it back to the broken state again. The issue was that the popup wouldn't go away after login, it was just redirecting back to localhost. When you did close the popup. The steps ddyett described happened.

mgambill avatar Jun 10 '20 00:06 mgambill

I was getting the issue while running from localhost.After deploying the application to Dev server , It is working now

SureshNegi avatar Jun 10 '20 05:06 SureshNegi

One more help I need.I am following the below link to call the Graph API: https://docs.microsoft.com/en-us/graph/tutorials/javascript

my Application is not working in IE browser. What should I do now?

SureshNegi avatar Jun 10 '20 05:06 SureshNegi

@SureshNegi this code was written with ES6 features like template literals that IE 11 doesn't support. If IE support is a must-have, you'll want to look at something like Babelto compile this code into IE-compatible code.

@mgambill if you do find out how to reproduce this it would be worth opening an issue on the MSAL.js repo at https://github.com/AzureAD/microsoft-authentication-library-for-js. All of the pop-up behavior is provided by that library.

jasonjoh avatar Jun 10 '20 14:06 jasonjoh