-
Notifications
You must be signed in to change notification settings - Fork 390
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
Login with Microsoft #306
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
I'm trying to implement this now by adding a Microsoft provider to the library. It's my first time digging into the internals of this library but it seems pretty straight-forward to add a provider. I'm basing this off of the MSAL v2 and am starting to test it this week. |
Check https://github.com/Azure-Samples/active-directory-javascript-singlepageapp-angular/blob/master/src/app/app.component.ts and https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/login-user.md I think the |
I've got a minimal
I also need to wire up more configuration options and validate/correct the claims and properties to a I also had issues running locally, the other providers and hard-coded IDs in the demo app were causing an initialization failure so I disabled all providers except the Microsoft one:
That's an ID for an app I've registered that accepts any microsoft personal or azure ad account. I used I'll start cleaning things up tomorrow and hopefully be ready to create a pull request tomorrow or Wednesday. |
|
This got pushed to the back burner for a few weeks but I've almost got it. One (big?) outstanding issue:
Updates pushed to same branch as above: https://github.com/kymeric/angularx-social-login/tree/feature/ms |
Yeah, they should be able to silently do that (may be through AJAX or something / or in worst case a popup). We can definitely open an issue with them. As far as this library goes, I think someone willing to use MS login will have to live with this quirk. I checked the MS library documentation, and it seems that the |
Issue created for MSAL and linked to this issue. I'll get the SocialUser mapping code finished and may try to add some sort of "partial logout" flag for the Microsoft Provider configuration, where we can just clear the MSAL session cache or something, technically not ending the session but allowing someone using this library and MS authentication to avoid the navigate/redirect if they absolutely want to. I'll try to put a reasonable warning/comment on that flag explaining the trade-offs. |
- There is an open issue for logout behavior: logout navigates away from current page to login.microsoft.com to fully end the user session. This doesn't match up with other providers: abacritt#306 Signed-off-by: Jon Stelly <967068+jonstelly@users.noreply.github.com>
- There is an open issue for logout behavior: logout navigates away from current page to login.microsoft.com to fully end the user session. This doesn't match up with other providers: abacritt#306 Signed-off-by: Jon Stelly <967068+jonstelly@users.noreply.github.com>
- There is an open issue for logout behavior: logout navigates away from current page to login.microsoft.com to fully end the user session. This doesn't match up with other providers: abacritt#306 Signed-off-by: Jon Stelly <967068+jonstelly@users.noreply.github.com>
Do you have any sample how can we implement it with microsoft authentication?
The text was updated successfully, but these errors were encountered: