mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-10-08 01:04:33 +00:00
Add passkey support to Vaultwarden
Add support for saving and using passkeys, and importing them via .json. * **src/api/core/ciphers.rs** - Add `Passkey` type to `CipherData` struct. - Update `update_cipher_from_data` function to handle passkeys. - Modify `post_ciphers_import` function to import passkeys. * **src/db/models/cipher.rs** - Add `Passkey` type to `Cipher` struct. - Update `type_data_json` handling to include passkeys. - Add validation for passkey entries. * **Database Migrations** - Add SQL statements to add passkey fields to MySQL, PostgreSQL, and SQLite schemas. * **src/api/admin.rs** - Add endpoints for managing passkeys: `get_passkeys`, `get_passkey`, `create_passkey`, `update_passkey`, `delete_passkey`.
This commit is contained in:
parent
a3dccee243
commit
2bec0ff2fd
6 changed files with 93 additions and 3 deletions
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE ciphers
|
||||
ADD COLUMN passkey_id TEXT,
|
||||
ADD COLUMN passkey_public_key TEXT;
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE ciphers
|
||||
ADD COLUMN passkey_id TEXT,
|
||||
ADD COLUMN passkey_public_key TEXT;
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE ciphers
|
||||
ADD COLUMN passkey_id TEXT,
|
||||
ADD COLUMN passkey_public_key TEXT;
|
Loading…
Add table
Add a link
Reference in a new issue