@@ -5,7 +5,7 @@ use bitwarden_crypto::CryptoError;
55use bitwarden_vault:: { CipherError , CipherView , EncryptionContext } ;
66use itertools:: Itertools ;
77use passkey:: {
8- authenticator:: { Authenticator , DiscoverabilitySupport , StoreInfo , UIHint , UserCheck } ,
8+ authenticator:: { Authenticator , DiscoverabilitySupport , StoreInfo , UiHint , UserCheck } ,
99 types:: {
1010 Passkey ,
1111 ctap2:: { self , Ctap2Error , StatusCode , VendorError } ,
@@ -175,7 +175,7 @@ impl<'a> Fido2Authenticator<'a> {
175175 Err ( e) => return Err ( MakeCredentialError :: Other ( format ! ( "{e:?}" ) ) ) ,
176176 } ;
177177
178- let attestation_object = response. as_bytes ( ) . to_vec ( ) ;
178+ let attestation_object = response. as_webauthn_bytes ( ) . to_vec ( ) ;
179179 let authenticator_data = response. auth_data . to_vec ( ) ;
180180 let attested_credential_data = response
181181 . auth_data
@@ -353,6 +353,7 @@ impl passkey::authenticator::CredentialStore for CredentialStoreImpl<'_> {
353353 & self ,
354354 ids : Option < & [ passkey:: types:: webauthn:: PublicKeyCredentialDescriptor ] > ,
355355 rp_id : & str ,
356+ _user_handle : Option < & [ u8 ] > ,
356357 ) -> Result < Vec < Self :: PasskeyItem > , StatusCode > {
357358 #[ derive( Debug , Error ) ]
358359 enum InnerError {
@@ -600,7 +601,7 @@ impl passkey::authenticator::UserValidationMethod for UserValidationMethodImpl<'
600601
601602 async fn check_user < ' a > (
602603 & self ,
603- hint : UIHint < ' a , Self :: PasskeyItem > ,
604+ hint : UiHint < ' a , Self :: PasskeyItem > ,
604605 presence : bool ,
605606 _verification : bool ,
606607 ) -> Result < UserCheck , Ctap2Error > {
@@ -617,7 +618,7 @@ impl passkey::authenticator::UserValidationMethod for UserValidationMethodImpl<'
617618 } ;
618619
619620 let result = match hint {
620- UIHint :: RequestNewCredential ( user, rp) => {
621+ UiHint :: RequestNewCredential ( user, rp) => {
621622 let new_credential = try_from_credential_new_view ( user, rp)
622623 . map_err ( |_| Ctap2Error :: InvalidCredential ) ?;
623624
@@ -669,8 +670,8 @@ impl passkey::authenticator::UserValidationMethod for UserValidationMethodImpl<'
669670 }
670671}
671672
672- fn map_ui_hint ( hint : UIHint < ' _ , CipherViewContainer > ) -> UIHint < ' _ , CipherView > {
673- use UIHint :: * ;
673+ fn map_ui_hint ( hint : UiHint < ' _ , CipherViewContainer > ) -> UiHint < ' _ , CipherView > {
674+ use UiHint :: * ;
674675 match hint {
675676 InformExcludedCredentialFound ( c) => InformExcludedCredentialFound ( & c. cipher ) ,
676677 InformNoCredentialsFound => InformNoCredentialsFound ,
0 commit comments