@@ -11,7 +11,6 @@ use libwebauthn::{
1111use serde:: { Deserialize , Serialize } ;
1212use serde_json:: json;
1313use tracing:: debug;
14- use zbus:: zvariant:: { DeserializeDict , Type } ;
1514
1615use crate :: cose:: { CoseKeyAlgorithmIdentifier , CoseKeyType } ;
1716
@@ -75,7 +74,7 @@ pub(crate) struct MakeCredentialOptions {
7574 #[ serde( deserialize_with = "crate::serde::duration::from_opt_ms" ) ]
7675 #[ serde( default ) ]
7776 pub timeout : Option < Duration > ,
78- #[ serde( rename = "excludedCredentials " ) ]
77+ #[ serde( rename = "excludeCredentials " ) ]
7978 pub excluded_credentials : Option < Vec < CredentialDescriptor > > ,
8079 #[ serde( rename = "authenticatorSelection" ) ]
8180 pub authenticator_selection : Option < AuthenticatorSelectionCriteria > ,
@@ -197,8 +196,7 @@ pub(crate) struct GetCredentialExtensions {
197196 pub prf : Option < Prf > ,
198197}
199198
200- #[ derive( Debug , Deserialize , Type ) ]
201- #[ zvariant( signature = "dict" ) ]
199+ #[ derive( Debug , Deserialize ) ]
202200/// https://www.w3.org/TR/webauthn-3/#dictionary-credential-descriptor
203201pub ( crate ) struct CredentialDescriptor {
204202 /// Type of the public key credential the caller is referring to.
@@ -250,24 +248,24 @@ impl TryFrom<CredentialDescriptor> for Ctap2PublicKeyCredentialDescriptor {
250248 }
251249}
252250
253- #[ derive( Debug , DeserializeDict , Type ) ]
254- #[ zvariant( signature = "dict" ) ]
251+ #[ derive( Debug , Deserialize ) ]
255252/// https://www.w3.org/TR/webauthn-3/#dictionary-authenticatorSelection
256253pub ( crate ) struct AuthenticatorSelectionCriteria {
257254 // /// https://www.w3.org/TR/webauthn-3/#enum-attachment
258255 // #[zvariant(rename = "authenticatorAttachment")]
259256 // pub authenticator_attachment: Option<String>,
260257 //
261258 /// https://www.w3.org/TR/webauthn-3/#enum-residentKeyRequirement
262- #[ zvariant ( rename = "residentKey" ) ]
259+ #[ serde ( rename = "residentKey" ) ]
263260 pub resident_key : Option < String > ,
264261
265262 // Implied by resident_key == "required", deprecated in webauthn
266263 // https://www.w3.org/TR/webauthn-3/#enum-residentKeyRequirement
267- // #[zvariant(rename = "requireResidentKey")]
268- // require_resident_key: Option<bool>,
264+ #[ serde( rename = "requireResidentKey" ) ]
265+ pub require_resident_key : Option < bool > ,
266+
269267 /// https://www.w3.org/TR/webauthn-3/#enumdef-userverificationrequirement
270- #[ zvariant ( rename = "userVerification" ) ]
268+ #[ serde ( rename = "userVerification" ) ]
271269 pub user_verification : Option < String > ,
272270}
273271
0 commit comments