Skip to content

Commit

Permalink
Fix issue with attStmt missing for sites that require it (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucFauvel authored Apr 23, 2024
1 parent ac72366 commit 14c7ac1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "slauth"
version = "0.7.6-beta.0"
version = "0.7.6-beta.1"
authors = ["richer <richer.arc@gmail.com>", "LucFauvel <luc.fauvel@hotmail.com>"]
edition = "2021"
description = "oath HOTP and TOTP complient implementation"
Expand Down
2 changes: 1 addition & 1 deletion examples/web-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl From<slauth::webauthn::error::Error> for TestError {
impl Responder for TestError {
fn respond_with_builder(self, builder: Builder, _ctx: &HttpContext) -> Builder {
match self {
TestError::Slauth(_) => builder.status(500),
TestError::Slauth(e) => builder.status(500).body(e.to_string()),
TestError::Internal => builder.status(500),
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/webauthn/authenticator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use crate::webauthn::{
authenticator::responses::PrivateKeyResponse,
proto::{
constants::WEBAUTHN_REQUEST_TYPE_GET,
raw_message::AttestationStatement,
web_message::{get_default_rp_id, AuthenticatorAttestationResponseRaw, PublicKeyCredentialRaw, PublicKeyCredentialRequestOptions},
},
};
Expand Down Expand Up @@ -213,7 +214,7 @@ impl WebauthnAuthenticator {
},
raw_auth_data: vec![],
fmt: WEBAUTHN_FORMAT_NONE.to_owned(),
att_stmt: None,
att_stmt: Some(AttestationStatement::None),
}
.to_bytes()?;

Expand Down

0 comments on commit 14c7ac1

Please sign in to comment.