question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Keep me signed in' not available when redirect url is chrome-extension://xxxx

See original GitHub issue

Library

  • msal@1.x.x or @azure/msal@1.x.x
  • @azure/msal-browser@2.x.x
  • @azure/msal-angular@0.x.x
  • @azure/msal-angular@1.x.x
  • @azure/msal-angularjs@1.x.x

Description

We are creating an edge extension using msal.js to authenticate users against AAD. For edge extension the redirect url is in such format chrome-extension://xxxx. I noticed that in such case the ‘Keep me signed in’ option is not longer available. However, if I just replaced the redirect_url segment in the url with https://xxxx, the ‘Keep me signed in’ option showed up.

I am wondering if there is something that I should do to enable KMSI, or it is a bug/limitation on the msal/AAD side.

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hpsincommented, May 12, 2020

This is expected behavior at this time for AAD. Non-HTTP(S) redirect URIs at this time indicate to the login server that the request is going to a native application or otherwise embedded app, and therefore there’s no reason to keep the session around or show KMSI.

In your scenario this is not desirable, of course, since you are inside a browser and would like the session to stick around. This limitation has cropped up as well in native apps using the system webview/system browser on Windows/Android/iOS as well, so we’re looking at was to improve our detection of these browser scenarios. I don’t have any estimates on if or when that will be possible however.

0reactions
tnorlingcommented, May 27, 2020

Closing as no further action needed by msal

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirecting URL in a chrome extension - Stack Overflow
Here's an example using the webRequest API, a simple extension which allows me to browse pages on the Pirate bay, even though the...
Read more >
How To Fix Google Chrome Redirects - YouTube
In this tutorial, I show you how to fix Google Chrome Redirecting. ... malware or malicious Chrome extension causing Chrome to redirect when ......
Read more >
Skip Redirect
Skip intermediary pages that some pages use before redirecting to a final page.
Read more >
Fix connection errors - Google Chrome Help
Open the page you were visiting in an Incognito window. If the page opens, a Chrome extension isn't working right. To fix the...
Read more >
Signing in users from a Chrome extension - Google Cloud
Phone and multi-factor authentication are not supported. Chrome extensions cannot use HTTP redirects, so you'll need to use pop-up operations ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found