pub struct AuthenticatorOptions {
pub rk: bool,
pub up: bool,
pub uv: Option<bool>,
pub plat: bool,
pub client_pin: Option<bool>,
pub pin_uv_auth_token: Option<bool>,
pub cred_mgmt: Option<bool>,
pub bio_enroll: Option<bool>,
pub large_blobs: Option<bool>,
pub ep: Option<bool>,
pub always_uv: Option<bool>,
pub make_cred_uv_not_required: Option<bool>,
}Expand description
Authenticator options for controlling device capabilities
Fields§
§rk: boolResident key (discoverable credentials) support
up: boolUser presence capable
uv: Option<bool>User verification capability
plat: boolPlatform device (cannot be removed)
client_pin: Option<bool>Client PIN capability. When Some(true) and UV is available, the
browser/client may defer verification to the authenticator instead of
prompting the user locally.
pin_uv_auth_token: Option<bool>PIN/UV auth token support
cred_mgmt: Option<bool>Credential management support
bio_enroll: Option<bool>Biometric enrollment support
large_blobs: Option<bool>Large blobs support
ep: Option<bool>Enterprise attestation
always_uv: Option<bool>Always require user verification
make_cred_uv_not_required: Option<bool>Make credential without UV (makeCredUvNotRqd)
When true, indicates that the authenticator can create credentials without performing UV when UV is not required by the relying party. This provides more flexible UV behavior for testing.
Implementations§
Source§impl AuthenticatorOptions
impl AuthenticatorOptions
Sourcepub fn with_resident_keys(self, enabled: bool) -> Self
pub fn with_resident_keys(self, enabled: bool) -> Self
Set resident key support
Sourcepub fn with_user_presence(self, enabled: bool) -> Self
pub fn with_user_presence(self, enabled: bool) -> Self
Set user presence capability
Sourcepub fn with_user_verification(self, state: Option<bool>) -> Self
pub fn with_user_verification(self, state: Option<bool>) -> Self
Set user verification capability
Sourcepub fn with_platform_device(self, is_platform: bool) -> Self
pub fn with_platform_device(self, is_platform: bool) -> Self
Set platform device flag
Sourcepub fn with_client_pin(self, state: Option<bool>) -> Self
pub fn with_client_pin(self, state: Option<bool>) -> Self
Set client PIN capability
Sourcepub fn with_pin_uv_auth_token(self, state: Option<bool>) -> Self
pub fn with_pin_uv_auth_token(self, state: Option<bool>) -> Self
Set PIN/UV auth token support
Sourcepub fn with_credential_management(self, state: Option<bool>) -> Self
pub fn with_credential_management(self, state: Option<bool>) -> Self
Set credential management support
Sourcepub fn with_biometric_enrollment(self, state: Option<bool>) -> Self
pub fn with_biometric_enrollment(self, state: Option<bool>) -> Self
Set biometric enrollment support
Sourcepub fn with_large_blobs(self, state: Option<bool>) -> Self
pub fn with_large_blobs(self, state: Option<bool>) -> Self
Set large blobs support
Sourcepub fn with_enterprise_attestation(self, state: Option<bool>) -> Self
pub fn with_enterprise_attestation(self, state: Option<bool>) -> Self
Set enterprise attestation support
Sourcepub fn with_always_uv(self, state: Option<bool>) -> Self
pub fn with_always_uv(self, state: Option<bool>) -> Self
Set always require user verification
Sourcepub fn with_make_cred_uv_not_required(self, state: Option<bool>) -> Self
pub fn with_make_cred_uv_not_required(self, state: Option<bool>) -> Self
Set make credential without UV support
Trait Implementations§
Source§impl Clone for AuthenticatorOptions
impl Clone for AuthenticatorOptions
Source§fn clone(&self) -> AuthenticatorOptions
fn clone(&self) -> AuthenticatorOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more