Skip to main content

AuthenticationVerificationOptions

Struct AuthenticationVerificationOptions 

Source
pub struct AuthenticationVerificationOptions<'origins, 'top_origins, O, T> {
    pub allowed_origins: &'origins [O],
    pub allowed_top_origins: Option<&'top_origins [T]>,
    pub backup_state_requirement: BackupStateReq,
    pub error_on_unsolicited_extensions: bool,
    pub auth_attachment_enforcement: AuthenticatorAttachmentEnforcement,
    pub update_uv: bool,
    pub sig_counter_enforcement: SignatureCounterEnforcement,
    pub client_data_json_relaxed: bool,
}
Expand description

Fields§

§allowed_origins: &'origins [O]

Origins to use for origin validation.

When this is empty, the origin that will be used will be based on the RpId passed to DiscoverableAuthenticationServerState::verify or NonDiscoverableAuthenticationServerState::verify. If RpId::Domain or RpId::StaticDomain, then the DomainOrigin returned from passing AsciiDomain::as_ref and AsciiDomainStatic::as_str to DomainOrigin::new respectively will be used; otherwise the Url in RpId::Url will be used.

§allowed_top_origins: Option<&'top_origins [T]>

Top-level origins to use for origin validation.

When this is Some, CollectedClientData::cross_origin is allowed to be true. When the contained slice is empty, CollectedClientData::top_origin must be None. When this is None, CollectedClientData::cross_origin must be false and CollectedClientData::top_origin must be None.

§backup_state_requirement: BackupStateReq

The required Backup state of the credential.

§error_on_unsolicited_extensions: bool

Error when unsolicited extensions are sent back iff true.

§auth_attachment_enforcement: AuthenticatorAttachmentEnforcement§update_uv: bool

DynamicState::user_verified will be set to true iff Flag::user_verified when true.

§sig_counter_enforcement: SignatureCounterEnforcement

Dictates what happens when AuthenticatorData::sign_count is not updated to a strictly greater value.

§client_data_json_relaxed: bool
Available on crate feature serde_relaxed only.

Implementations§

Trait Implementations§

Source§

impl<'origins, 'top_origins, O: Clone, T: Clone> Clone for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'origins, 'top_origins, O: Copy, T: Copy> Copy for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>

Source§

impl<'origins, 'top_origins, O: Debug, T: Debug> Debug for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<O, T> Default for AuthenticationVerificationOptions<'_, '_, O, T>

Source§

fn default() -> Self

Same as Self::new.

Auto Trait Implementations§

§

impl<'origins, 'top_origins, O, T> Freeze for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>
where &'origins [O]: Freeze, Option<&'top_origins [T]>: Freeze,

§

impl<'origins, 'top_origins, O, T> RefUnwindSafe for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>
where &'origins [O]: RefUnwindSafe, Option<&'top_origins [T]>: RefUnwindSafe,

§

impl<'origins, 'top_origins, O, T> Send for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>
where &'origins [O]: Send, Option<&'top_origins [T]>: Send,

§

impl<'origins, 'top_origins, O, T> Sync for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>
where &'origins [O]: Sync, Option<&'top_origins [T]>: Sync,

§

impl<'origins, 'top_origins, O, T> Unpin for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>
where &'origins [O]: Unpin, Option<&'top_origins [T]>: Unpin,

§

impl<'origins, 'top_origins, O, T> UnsafeUnpin for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>
where &'origins [O]: UnsafeUnpin, Option<&'top_origins [T]>: UnsafeUnpin,

§

impl<'origins, 'top_origins, O, T> UnwindSafe for AuthenticationVerificationOptions<'origins, 'top_origins, O, T>
where &'origins [O]: UnwindSafe, Option<&'top_origins [T]>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.