[−][src]Enum webauthn_rs::proto::UserVerificationPolicy
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 interfaction 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.
Variants
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.
Prefer User Verification bit to be set, and yolo the registration or authentication if false. This means if the authenticator can perform verification, do it, but don't mind if not.
WARNING: This setting is effectively useless. Either you want user verification
so require Required
, or you do not want it, so use Discouraged
. This setting
will prompt users for verification, but without enforcing that it is present.
As a result, this setting is effectively Discouraged
and should be AVOIDED.
Request that no verification is performed, and fail if it is. This is intended to minimise user interaction in workflows, but is potentially a security risk to use.
Trait Implementations
impl Clone for UserVerificationPolicy
[src]
fn clone(&self) -> UserVerificationPolicy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UserVerificationPolicy
[src]
impl<'de> Deserialize<'de> for UserVerificationPolicy
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for UserVerificationPolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserVerificationPolicy
impl Send for UserVerificationPolicy
impl Sync for UserVerificationPolicy
impl Unpin for UserVerificationPolicy
impl UnwindSafe for UserVerificationPolicy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,