pub enum WebAuthnError {
Show 13 variants
TooLong,
MalformedClientData,
WrongType,
WrongChallenge,
CrossOrigin,
MalformedAuthenticatorData,
WrongRp,
NotVerified,
BadSignature,
MalformedAttestation,
NoCredential,
BadCredentialId,
UnsupportedKey,
}Expand description
Why a WebAuthn assertion or registration is refused.
Variants§
TooLong
A field over its bound (MAX_CLIENT_DATA_JSON,
MAX_ATTESTATION_OBJECT, MAX_AUTHENTICATOR_DATA,
MAX_DER_SIGNATURE), refused before it is parsed.
MalformedClientData
clientDataJSON is not a JSON object with string type and
challenge (and, if present, a boolean crossOrigin).
WrongType
webauthn.create where an assertion was wanted, or the reverse.
WrongChallenge
The challenge is not the one this signature or registration is for.
CrossOrigin
Made in a cross-origin frame.
MalformedAuthenticatorData
authenticatorData too short to hold its RP id hash, flags and
counter, or its attested credential data does not parse.
WrongRp
Not under PORTABLE_RP.
NotVerified
Made without the touch (UP) or the PIN (UV).
BadSignature
The signature is not the root’s.
MalformedAttestation
The attestationObject is not CBOR with text fmt and bytes
authData.
NoCredential
A registration whose authenticatorData carries no credential (AT).
BadCredentialId
A credential id empty or over MAX_CREDENTIAL_ID bytes.
UnsupportedKey
A credential public key that is not an ES256 P-256 COSE key.
Trait Implementations§
Source§impl Clone for WebAuthnError
impl Clone for WebAuthnError
impl Copy for WebAuthnError
Source§impl Debug for WebAuthnError
impl Debug for WebAuthnError
Source§impl Display for WebAuthnError
impl Display for WebAuthnError
impl Eq for WebAuthnError
Source§impl Error for WebAuthnError
impl Error for WebAuthnError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()