pub enum UserVerificationPolicy {
Required,
Preferred,
Discouraged_DO_NOT_USE,
}Expand description
Defines the User Authenticator Verification policy. This is documented https://w3c.github.io/webauthn/#enumdef-userverificationrequirement, and each variant lists it’s effects.
To be clear, Verification means that the Authenticator perform extra or supplementary interaction with the user to verify who they are. An example of this is Apple Touch Id required a fingerprint to be verified, or a yubico device requiring a pin in addition to a touch event.
An example of a non-verified interaction is a yubico device with no pin where touch is the only interaction - we only verify a user is present, but we don’t have extra details to the legitimacy of that user.
As UserVerificationPolicy is only used in credential registration, this stores the verification state of the credential in the persisted credential. These persisted credentials define which UserVerificationPolicy is issued during authentications.
⚠️ WARNING - discouraged is marked with a warning, as in some cases, some authenticators will FORCE verification during registration but NOT during authentication. This means that is is NOT possible assert verification has been bypassed or not from the server viewpoint, and to the user it may create confusion about when verification is or is not required.
Variants
Required
Require User Verification bit to be set, and fail the registration or authentication if false. If the authenticator is not able to perform verification, it may not be usable with this policy.
Preferred
TO FILL IN
Discouraged_DO_NOT_USE
TO FILL IN
Trait Implementations
sourceimpl Clone for UserVerificationPolicy
impl Clone for UserVerificationPolicy
sourcefn clone(&self) -> UserVerificationPolicy
fn clone(&self) -> UserVerificationPolicy
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more