Page MenuHomePhabricator

Backend support for UV passkeys
Closed, ResolvedPublic

Description

We want to enable users to register passkeys with user verification, initially just for use as a second factor, but later for passwordless login as well. We'll need the following initial backend changes to enable the rest of the work:

  • A feature flag to enable/disable this new passkeys feature
  • Add a field to WebAuthnKey that flags whether the key was created as a passkey that supports passwordless login, and make sure this field is persisted in the database (by adding it to jsonSerialize())
  • Add a supportsPasswordlessLogin() method to AuthKey, and make it return true for WebAuthnKeys that have the passwordless flag

Event Timeline

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

[mediawiki/extensions/OATHAuth@master] Add feature flags for new passkey features

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

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

[mediawiki/extensions/OATHAuth@master] Add supportsPasswordlessLogin to AuthKey

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

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

[mediawiki/extensions/WebAuthn@master] Add field for supportsPasswordless

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

Change #1207006 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] Add supportsPasswordlessLogin to AuthKey

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

Change #1206963 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] Add feature flags for new passkey features

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

Catrope updated the task description. (Show Details)

Change #1207007 merged by jenkins-bot:

[mediawiki/extensions/WebAuthn@master] Add field for supportsPasswordless

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

Mstyles updated the task description. (Show Details)