Update light-openid to version 1.1.0
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-29 16:53:44 +01:00
parent a07c58955e
commit 2a0b20ad00
4 changed files with 290 additions and 161 deletions

View File

@@ -1,4 +1,3 @@
use bincode::{Decode, Encode};
use std::collections::HashMap;
use std::net::IpAddr;
@@ -11,7 +10,17 @@ use crate::data::totp_key::TotpKey;
use crate::data::webauthn_manager::WebauthnPubKey;
use crate::utils::time_utils::{fmt_time, time};
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize, Encode, Decode)]
#[derive(
Clone,
Debug,
Eq,
PartialEq,
serde::Serialize,
serde::Deserialize,
rkyv::Archive,
rkyv::Serialize,
rkyv::Deserialize,
)]
pub struct UserID(pub String);
impl UserID {

View File

@@ -1,7 +1,6 @@
use std::sync::Arc;
use actix_web::web;
use bincode::{Decode, Encode};
use light_openid::crypto_wrapper::CryptoWrapper;
use uuid::Uuid;
use webauthn_rs::prelude::{
@@ -28,7 +27,9 @@ pub struct RegisterKeyRequest {
pub creation_challenge: CreationChallengeResponse,
}
#[derive(Debug, serde::Serialize, serde::Deserialize, Encode, Decode)]
#[derive(
Debug, serde::Serialize, serde::Deserialize, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize,
)]
struct RegisterKeyOpaqueData {
registration_state: String,
user_id: UserID,
@@ -40,7 +41,7 @@ pub struct AuthRequest {
pub login_challenge: RequestChallengeResponse,
}
#[derive(Debug, Encode, Decode)]
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)]
struct AuthStateOpaqueData {
authentication_state: String,
user_id: UserID,