Skip to content
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

Authentication Popup not closing for MSAL authentication extension #2692

Open
2 of 15 tasks
cosymon opened this issue Feb 12, 2025 · 0 comments
Open
2 of 15 tasks

Authentication Popup not closing for MSAL authentication extension #2692

cosymon opened this issue Feb 12, 2025 · 0 comments
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@cosymon
Copy link

cosymon commented Feb 12, 2025

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.

Image

Image

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):

  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Android
  • WebAssembly
  • Windows
  • Skia (WPF)
  • Skia (GTK on Linux/macOS/Windows)
  • Skia (Linux Framebuffer)
  • Build tasks

Visual Studio:

  • 2019 (version: )
  • 2022 (version: )
  • Visual Studio Code (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )

Additional Information

During troubleshooting, I changed the target framework to net8.0-browserwasm, and it worked as intended

@cosymon cosymon added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

1 participant