WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

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

Open YexuanXiao opened this issue 1 year ago • 2 comments

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: https://github.com/microsoft/cppwinrt/issues/999

YexuanXiao avatar Mar 26 '24 22:03 YexuanXiao

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.

jonwis avatar Mar 28 '24 05:03 jonwis

I think this is also an issue on UWP application

zhuxb711 avatar Jul 22 '24 02:07 zhuxb711