Page MenuHomePhabricator

WebAuthn failure wipes out entire form
Closed, ResolvedPublicBUG REPORT

Description

When you try to log in with WebAuthn, initially you see a form with a button to switch to TOTP, but that immediately gets overlaid with the browser dialog for using your passkey or security key:

image.png (1,065×384 px, 38 KB)

And then if you cancel that, the whole form is replaced with an error message, which makes it impossible to actually switch to TOTP.

image.png (349×260 px, 12 KB)

  • The WebAuthn error message should not destroy the entire form, but leave the switch button(s) intact

Event Timeline

Change #1188865 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/extensions/WebAuthn@master] Don't remove the entire login form when WebAuthn fails

https://gerrit.wikimedia.org/r/1188865

I concur this isn't completely ideal either, but definitely better than the previous almost dead end.

Screenshot 2025-09-17 at 00.08.50.png (389×351 px, 22 KB)

Change #1188865 merged by jenkins-bot:

[mediawiki/extensions/WebAuthn@master] Don't remove the entire login form when WebAuthn fails

https://gerrit.wikimedia.org/r/1188865

Reedy renamed this task from WebAuthn failure wipes out entire form to WebAuthn failure wipes out entire form.Sep 16 2025, 11:26 PM
Reedy closed this task as Resolved.