Closed jeromechrist closed 3 years ago
Thank you for bringing this to our attention. I read through the issue posted in the angular-tutorial repo and will get back here once we can find a root cause.
alright, thank you
Adding the repo for reproduction. cc @jasonnutter checking for interaction_in_progress
in the component where looping happens doesn't seem to have an effect.
@jeromechrist Can you capture the network trace using Fiddler and send it to us? You can use the email under my profile.
General comment: apps using redirects with MSAL Angular must make sure to not perform any action (e.g. http request) that might result in an interactive MSAL request (e.g. redirect to the login page) until any previous interactions have completed. This can be done by subscribing to the $inProgress
subject and waiting for InteractionStatus.None
. Not doing so can result in login loops.
Details here: https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/docs/v2-docs/redirects.md
@jeromechrist This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.
Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.14.2
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2.0.0
Description
Following this issue I've encountered while trying the samples with Azure AD B2C
https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/issues/7#issuecomment-854313384
The bug only happens on Safari
Safari
Edge (did not reproduce the issue)
Mac OS
Error Message
I didn't find any in the console
Msal Logs
No response
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
I've recorded the issue here, you can see that on Edge (first) the issue doesn't happen, then in Safari it happens every time.
The step is to basically try to access a resource, here the Web API, protected by an Azure AD B2C instance.
https://user-images.githubusercontent.com/2547646/120781953-d43c8880-c529-11eb-96a3-5dc4b98a4040.mov
Expected Behavior
I should be able to access the resource
Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Safari
Regression
No response
Source
External (Customer)