mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[PR #4485] [CLOSED] update the webauthn crate #3304
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/4485
Author: @stefan0xC
Created: 4/9/2024
Status: ❌ Closed
Base:
main← Head:webauthn-update📝 Commits (1)
6c3109dupdate webauthn-rs crate📊 Changes
7 files changed (+307 additions, -189 deletions)
View changed files
📝
Cargo.lock(+252 -34)📝
Cargo.toml(+2 -1)📝
src/api/core/two_factor/webauthn.rs(+20 -142)📝
src/config.rs(+18 -0)📝
src/db/models/two_factor.rs(+11 -10)📝
src/error.rs(+3 -1)📝
src/main.rs(+1 -1)📄 Description
I have been working on updating the
webauthn_rscrate (as basis to implement passkey support).The feature
danger-allow-state-serialisationis used to serialize the state into the database, which should be fine according to: https://docs.rs/webauthn-rs/0.4.8/webauthn_rs/index.html#allow-serialising-registration-and-authentication-stateI've also decided to remove the u2f migration because it would have required the use of the more low level, protocol interactions provided by the webauthn_core_rs crate, so I guess this could be considered a breaking change? (If this is deemed necessary I can revert the removal, I mainly did it because upgrading the crate was tedious enough.)
I could not actually test the changes because I don't have a security key myself. And therefore I also don't know if it addresses the issues raised in https://github.com/dani-garcia/vaultwarden/issues/4196 (but I think it should be easier with the use of the Safe API?). So someone else definitely needs to test it and/or take over this PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.