Authentication Popup not closing for MSAL authentication extension #2692
Labels
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
Current behavior
When LoginAsync is called using the Authentication service, the popup doesn't send the token back to the main window, but instead sends it to a new page inside the popup.
After looking in the logs I found this error:
dbug: Uno.Extensions.Authentication.MSAL.MsalAuthenticationProvider[0]
LoginAsync - Error attempting to login [Error - Popup closed]
Expected behavior
The token is sent back to the main window, and the popup closes
How to reproduce it (as minimally and precisely as possible)
Add MSAL authentication following this tutorial
Environment
Target Framework (s): net9.0-browserwasm
Nuget Package (s): Uno.Extensions.Authentication.MSAL.WinUI
Package Version(s): 5.2.7
Affected platform(s):
Visual Studio:
Additional Information
During troubleshooting, I changed the target framework to net8.0-browserwasm, and it worked as intended
The text was updated successfully, but these errors were encountered: