-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Blazor Wasm MSAL authentication stuck on logging in when msal.js returns "Operation Completed" #43317
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
Comments
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. |
Hi @njannink. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
this is not something that I can easily validate a number of dependencies that we use don't support .net7 so I can't migrate to the RC to retest this issue |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
Still not fixed! Thanks to @njannink will try you workaround |
@ericbrunner my workaround isn't working anymore for net7. I have the idea that the original issue is not occuring anymore, but I did some code review and the "Operation Completed" is still not handled so in theory it could still happen |
@njannink thanks for getting back. I'm already on |
I think a new issue needs to be made for this so the guys from MSAL or Blazor can have a look at this problem. Since this issue has already been marked as closed or @mkArtakMSFT should reopen it. I did not find a good solution either hence the workaround that I used in Net6, but in Net7 I see that this workaround gives unwanted side effects. Its quite annoying and disrupts the user experience of Azure B2C in a blazor wasm app. |
It's actually this issue: #44981 |
Is there an existing issue for this?
Describe the bug
In rare cases especially after an update of our Blazor Wasm website with MSAL (Azure B2C) stays stuck on logging-in. It's difficult to reproduce, but I saw it happening on a iPhone with Chrome. What I saw is that the url only consisted of
https://xxx.com/authentication/login-callback
resulting in the app being stuck on infinite 'logging-in', because with that url the masl.js libarary only returnsoperation completed
which is not handled in theMicrosoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticatorViewCore<TState>.ProcessLogInCallback
.I created the following fix by overriding the 'RemoteAuthenticatorView', but would like to get your opinion about the possible risks\implications of this and maybe this will need to be fixed in the original 'RemoteAuthenticationView' aswell.
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0(.8)
Anything else?
No response
The text was updated successfully, but these errors were encountered: