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.

ISinglePublicClientApplication#signInAgain() allowing different users

See original GitHub issue

Hi 👋!

Sorry, just a quick and easy question, should the ISinglePublicClientApplication#signInAgain() function allow signing in with a different user than the one that’s currently using?

Because of a product requirement, I need to re-authenticate the current user at X amount of time, one of the options for doing this is using the MSAL credentials. Now, something that I don’t want to happen is that the user signs in with a different user, I thought that because the ISinglePublicClientApplication instance is for single accounts, re-authenticating the user through the signInAgain() function would trigger some sort of exception if I try to sign in with a different user?

Is this the correct behavior? Is there any way to prevent the user from authenticating using a different account?

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
4gus71ncommented, Jul 31, 2020

@iambmelt Awesomeee! 🎉 Thanks a lot! I’ll try that 💪 and let you know if I find anything else, but I’m sure that’ll do the trick! Thanks again! 🙇

0reactions
iambmeltcommented, Jul 31, 2020

@4gus71n Great! I’ll keep an eye out for this thread in case you run into any issues.

And thanks for using MSAL, we’re happy to have you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Single-page application: Sign-in and Sign-out - Microsoft Learn
Learn how to add sign-in to the code for your single-page application. ... You can sign in users to your application in MSAL.js...
Read more >
Multiple user sessions with SPA using MSAL - Stack Overflow
For example, one user is logged into my single-page-application (SPA) using MSALjs. All API's they call to my services will be under that...
Read more >
Authenticate users in JavaScript apps with MSAL.js - YouTube
Check out our complete playlist focused on Identity https://www.youtube.com/playlist?list=PLtvmFy4Ed_DJDJ3_Fz0UEOyneemO5yVdHThe Microsoft ...
Read more >
Authenticating Users - Kustomer Help Center
You can let users sign into Kustomer using their Microsoft account. ... This allows you to use Microsoft as the single main repository...
Read more >
Azure AD v2 and MSAL from a developer's point of view
The v2 endpoint allows, what Microsoft calls, converged authentication. ... front-end Single Page Applications and back-end applications.
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