pub enum WebauthnError {
UnknownCredential,
BadClientData,
WrongType,
ChallengeMismatch,
OriginMismatch,
RpIdMismatch,
AuthenticatorDataTooShort,
UserNotPresent,
SignatureMismatch,
UnsupportedAlg,
CounterRegression,
}Expand description
Errors that can occur during assertion verification. We return distinct variants so test/log paths can pinpoint failures, but the HTTP layer collapses them to a single 401 to avoid oracle leaks.
Variants§
UnknownCredential
BadClientData
WrongType
ChallengeMismatch
OriginMismatch
RpIdMismatch
AuthenticatorDataTooShort
UserNotPresent
SignatureMismatch
UnsupportedAlg
CounterRegression
Trait Implementations§
Source§impl Clone for WebauthnError
impl Clone for WebauthnError
Source§fn clone(&self) -> WebauthnError
fn clone(&self) -> WebauthnError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebauthnError
impl Debug for WebauthnError
Source§impl Display for WebauthnError
impl Display for WebauthnError
Source§impl PartialEq for WebauthnError
impl PartialEq for WebauthnError
impl Eq for WebauthnError
impl StructuralPartialEq for WebauthnError
Auto Trait Implementations§
impl Freeze for WebauthnError
impl RefUnwindSafe for WebauthnError
impl Send for WebauthnError
impl Sync for WebauthnError
impl Unpin for WebauthnError
impl UnsafeUnpin for WebauthnError
impl UnwindSafe for WebauthnError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more