Page MenuHomePhabricator

Simplify login form when reauthenticating
Open, Needs TriagePublic

Description

When reauthenticating, the login form should use a simplified user experience, not the full login experience.

  • Display a banner explaining that the user is reauthenticating, and which action they're about to take
  • Add a link that allows the user to cancel the action
  • The user name should be displayed, but should not be editable
  • If the user has 2FA
    • Don't ask for the password
    • Display a "Continue with passkey" button that does the same thing as the current "Log in with passkey" button
    • Display the "Use X" buttons for the other 2FA mechanisms the user has enrolled (security key, authenticator app, recovery codes)
  • If the user doesn't have 2FA, ask for their password

image.png (502×286 px, 21 KB)

image.png (526×348 px, 26 KB)

Figma: https://www.figma.com/design/u2ilwdqUunQgQpPhLM3FxS/T197160?node-id=247-1422&p=f&m=dev

MW core doesn't know about 2FA and can't check for it directly, but we could implement this by leaving the login form in core mostly unmodified (except for not making the user name not editable), and making all the other changes in the OATHAuth extension.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1301465 had a related patch set uploaded (by Mstyles; author: Mstyles):

[mediawiki/core@master] Reauth: Add personalized message

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

Change #1304905 had a related patch set uploaded (by Mstyles; author: Mstyles):

[mediawiki/extensions/OATHAuth@master] Update banner for OATHAuth

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

Change #1304924 had a related patch set uploaded (by Mstyles; author: Mstyles):

[mediawiki/core@master] Reauth: Username not editable

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

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

[mediawiki/extensions/OATHAuth@master] Reauthentication: Skip directly to second factor when available

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

Change #1304924 merged by jenkins-bot:

[mediawiki/core@master] Login: Don't allow editing the username when reauthenticating

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

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

[mediawiki/core@master] Login: Change "Log in" button to "Continue" when reauthenticating

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

Change #1305497 merged by jenkins-bot:

[mediawiki/core@master] Login: Change "Log in" button to "Continue" when reauthenticating

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

Change #1305277 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] Reauthentication: Skip directly to second factor when available

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

Change #1301465 merged by jenkins-bot:

[mediawiki/core@master] Reauth: Update banner and add message

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

Change #1304905 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] Add custom reauth banner for OATHManage

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

Change #1307238 had a related patch set uploaded (by Mstyles; author: Mstyles):

[mediawiki/core@master] Add documentation for reauth banner

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

Change #1307238 merged by jenkins-bot:

[mediawiki/core@master] Add documentation for reauth banner

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

Change #1308783 had a related patch set uploaded (by Mstyles; author: Mstyles):

[mediawiki/core@master] Reauth: Add cancel link

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