Skip to content

Commit

Permalink
update webauthn-rs to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan0xC committed Apr 28, 2024
1 parent 035a843 commit 0045330
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 14 deletions.
50 changes: 39 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ totp-lite = "2.0.1"
yubico = { version = "0.11.0", features = ["online-tokio"], default-features = false }

# WebAuthn libraries
webauthn-rs = { version = "0.4.8", features = ["danger-allow-state-serialisation", "danger-credential-internals", "resident-key-support"] }
webauthn-rs-core = { version = "0.4.9" }
webauthn-rs = { version = "0.5.0", features = ["danger-allow-state-serialisation", "danger-credential-internals"] }
webauthn-rs-core = { version = "0.5.0" }

# Handling of URL's for WebAuthn and favicons
url = "2.5.0"
Expand Down
2 changes: 1 addition & 1 deletion src/api/core/two_factor/webauthn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async fn generate_webauthn_challenge(

data.validate(&user, false, &mut conn).await?;

let registrations: Vec<Base64UrlSafeData> = get_webauthn_registrations(&user.uuid, &mut conn)
let registrations: Vec<CredentialID> = get_webauthn_registrations(&user.uuid, &mut conn)
.await?
.1
.into_iter()
Expand Down

0 comments on commit 0045330

Please sign in to comment.