-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to leverage SSO capabilities of MSAL.js when not signed in through MSAL #340
Question: How to leverage SSO capabilities of MSAL.js when not signed in through MSAL #340
Comments
Maybe my setup is unclear, so let me try to explain it again: a) 1 Web application written in .NET 4.5.1 or later that utilizes the Microsoft.Owin and Microsoft.Owin.Security.OpenIdConnect NuGet packages (see code below) b) 1 Single Page Application that uses MSAL.js to communicate with Azure B2C AD When I signin, in the web application, a), and open a new tab with the SPA, I need to also be signed in to the SPA. Currently, it seems to work when I first signin to the SPA and the visit the web application, but not the other way around. And here is the code from the Startup.Auth.cs:
|
This is what I'm after too. There is a comment by @rohitnarula7176 where he says there is the intention of this but not implemented yet. @rohitnarula7176 any update on this? Will you accept a PR? |
@davidkempers @jhossy We have implemented SSO in MSA.js and PR is out. We are hoping to release it by next week. |
Fixed and released in msal 0.2.3. Please check our sample here https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-core/samples/VanillaJSTestApp/index_single_sign_on.html |
Please check the SSO wiki page now to see the pattern for this scenario: |
Hi
I have digged through the issues here and also on Stackoverflow, but there is an issue that remains unanswered to me.
Is it possible, for users to sign in using for example a Web App that integrates with Azure B2C AD and afterwards be signed into a SPA that uses the MSAL.js library?
When I attempt that and perform the loginRedirect() in my SPA, I am always redirected to the login page (which might be related to this issue:
#275).
This is my code that acquires a token, however it seems to always add the prompt parameter (even if the user is already signed in), which kinda defeats the SSO experience:
The text was updated successfully, but these errors were encountered: