Compare commits

..

2 Commits

Author SHA1 Message Date
ddfb3476b5 Bump crate version
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-25 08:06:06 +02:00
58b6bd7568 Add RP name in webauthn 2022-08-25 08:03:49 +02:00
3 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -533,7 +533,7 @@ dependencies = [
[[package]]
name = "basic-oidc"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"actix",
"actix-identity",

View File

@@ -1,6 +1,6 @@
[package]
name = "basic-oidc"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -6,7 +6,7 @@ use uuid::Uuid;
use webauthn_rs::{Webauthn, WebauthnBuilder};
use webauthn_rs::prelude::{CreationChallengeResponse, Passkey, PublicKeyCredential, RegisterPublicKeyCredential, RequestChallengeResponse};
use crate::constants::{WEBAUTHN_LOGIN_CHALLENGE_EXPIRE, WEBAUTHN_REGISTER_CHALLENGE_EXPIRE};
use crate::constants::{APP_NAME, WEBAUTHN_LOGIN_CHALLENGE_EXPIRE, WEBAUTHN_REGISTER_CHALLENGE_EXPIRE};
use crate::data::app_config::AppConfig;
use crate::data::crypto_wrapper::CryptoWrapper;
use crate::data::user::{User, UserID};
@@ -60,6 +60,7 @@ impl WebAuthManager {
&url::Url::parse(&conf.website_origin)
.expect("Failed to parse configuration origin!"))
.expect("Invalid Webauthn configuration")
.rp_name(APP_NAME)
.build()
.expect("Failed to build webauthn")