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

Windows.Security.Credentials.KeyCredentialManager.RequestCreateAsync lacks support for Win32 windows, causing the WindowsHello window to not display correctly at the top and failing to authenticate #4290

Open
YexuanXiao opened this issue Mar 26, 2024 · 1 comment

Comments

@YexuanXiao
Copy link

YexuanXiao commented Mar 26, 2024

Describe the bug

When creating a KeyCredential via Windows.Security.Credentials.KeyCredentialManager.RequestCreateAsync, a WindowsHello window pops up for authenticating the user, but in a non-VS debugger environment, the WindowsHello window is displayed as a bottom window, not at the top, and failing to authenticate.

Steps to reproduce the bug

call Windows.Security.Credentials.KeyCredentialManager.RequestCreateAsync

Expected behavior

WindowsHello window displayed at the top

NuGet package version

Windows App SDK 1.5.1: 1.5.240311000

Packaging type

Packaged (MSIX)

Windows version

Insider Build (26085)

IDE

Visual Studio 2022-preview

Additional context

Everything works fine when using the VS debugger.

Original issue and discussions: microsoft/cppwinrt#999

@YexuanXiao YexuanXiao changed the title Windows.Security.Credentials.KeyCredentialManager.RequestCreateAsync lacks support for Win32 windows, causing the WindowsHello window to not display correctly at the top Windows.Security.Credentials.KeyCredentialManager.RequestCreateAsync lacks support for Win32 windows, causing the WindowsHello window to not display correctly at the top and failing to authenticate Mar 26, 2024
@jonwis
Copy link
Member

jonwis commented Mar 28, 2024

The implementation works for Win32 apps, but uses the wrong window for parenting the UI, as you've found. I filed http://task.ms/49689617 for us to track the work internally, and I've asked the team to provide any more guidance they can on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants