mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
[PR #5929] Add support for the "Login with passkey" option #3654
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/5929
Author: @zUnixorn
Created: 6/4/2025
Status: 🔄 Open
Base:
main← Head:webauthn_login📝 Commits (5)
f5bf0edimplement working webauthn login9d4b94bdelete schema.rsa4b480dimplement webauthn login deletion (untested)22a3571implement unecrypted passkey login and cleanup code a bit morbbe3a7brebase onto main📊 Changes
10 files changed (+589 additions, -23 deletions)
View changed files
➕
migrations/sqlite/2025-06-03-173809_create_web_authn_credentials_table/down.sql(+1 -0)➕
migrations/sqlite/2025-06-03-173809_create_web_authn_credentials_table/up.sql(+11 -0)📝
src/api/core/mod.rs(+127 -8)📝
src/api/core/two_factor/webauthn.rs(+30 -7)📝
src/api/identity.rs(+288 -4)📝
src/db/models/mod.rs(+2 -0)📝
src/db/models/user.rs(+2 -1)➕
src/db/models/web_authn_credential.rs(+110 -0)📝
src/db/schemas/sqlite/schema.rs(+15 -0)📝
src/static/templates/scss/vaultwarden.scss.hbs(+3 -3)📄 Description
Hello,
This PR implements the endpoints needed for passkey login into the Bitwarden webclient.
I marked this as a draft for now, since I'd like to first get some feedback on this PR before I start pursuing this further or if this is even a wanted feature for Vaultwarden.
Working Features
Testing this Branch
To test this branch, the fronted needs to be build with this line appended, to allow for passkey registration.
Open TODOs
tokenfield (I think this is what bitwarden does with this C# Api)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.