flutter-institute / webauthn

A plugin to handle webauthn login
BSD 3-Clause "New" or "Revised" License
15 stars 7 forks source link

Text Field Entry Bug with Example App on Windows 11 #6

Open thomastthai opened 1 year ago

thomastthai commented 1 year ago

After getting the example app to run on Windows 11, there is one minor bug where a username can't be entered into the Username field again unless Alt-Tab was used to switch to another window or app first and back to the example app. How to repeat:

  1. On a fresh launch of the example app, enter ttt in the Username field.
  2. Click Register
  3. Verify with Windows Hello your pin or however you set up your system
  4. Click in the Username field again and enter ttt again. The field will show active but no character will appear.
  5. Press Alt-Tab on the keyboard to switch to another window or program.
  6. Press Alt-Tab again until the example app is displayed again.
  7. Click in the Username field again and enter ttt again. The field will show active and ttt will appear.
  8. Click Login
killermonk commented 1 year ago

I have finally set up a windows machine with flutter and VS to build the app and have reproduced this bug. I'll look into it and see what I can figure out.

killermonk commented 10 months ago

Current state of research:

When the textbox stops working, if we unfocus and refocus the window, then it starts working again. If we set authenticationRequired to false for the Authenticator in the demo app, then the text box works as desired.

So it appears to be something related to the Windows Security popup asking you to input your pin. I'm digging more.

killermonk commented 10 months ago

Well.. would you look at that: https://github.com/flutter/flutter/issues/122322

Looks like this is an issue with the local_auth plugin and the team may be looking in to it.