Skip to content

Commit

Permalink
Fix softpasskey
Browse files Browse the repository at this point in the history
  • Loading branch information
micolous committed Nov 24, 2023
1 parent 6f3dad7 commit 4215dd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webauthn-authenticator-rs/src/softpasskey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,19 +523,22 @@ impl U2FToken for SoftPasskey {
mod tests {
use super::SoftPasskey;
use crate::prelude::{Url, WebauthnAuthenticator};
use std::time::Duration;
use webauthn_rs_core::WebauthnCore as Webauthn;
use webauthn_rs_proto::{
AttestationConveyancePreference, COSEAlgorithm, UserVerificationPolicy,
};

const AUTHENTICATOR_TIMEOUT: Duration = Duration::from_secs(60);

#[test]
fn webauthn_authenticator_wan_softpasskey_self_attest() {
let _ = tracing_subscriber::fmt::try_init();
let wan = Webauthn::new_unsafe_experts_only(
"https://localhost:8080/auth",
"localhost",
vec![url::Url::parse("https://localhost:8080").unwrap()],
None,
AUTHENTICATOR_TIMEOUT,
None,
None,
);
Expand Down

0 comments on commit 4215dd8

Please sign in to comment.