Trait AuthenticatorBackend

Source
pub trait AuthenticatorBackend {
    // Required methods
    fn perform_register(
        &mut self,
        origin: Url,
        options: PublicKeyCredentialCreationOptions,
        timeout_ms: u32,
    ) -> Result<RegisterPublicKeyCredential, WebauthnCError>;
    fn perform_auth(
        &mut self,
        origin: Url,
        options: PublicKeyCredentialRequestOptions,
        timeout_ms: u32,
    ) -> Result<PublicKeyCredential, WebauthnCError>;
}

Required Methods§

Implementors§

Source§

impl AuthenticatorBackend for MozillaAuthenticator

Available on crate feature mozilla only.
Source§

impl AuthenticatorBackend for Win10

Available on crate feature win10 only.
Source§

impl<T: AuthenticatorBackendHashedClientData> AuthenticatorBackend for T

Available on crate feature crypto only.

This provides a AuthenticatorBackend implementation for AuthenticatorBackendHashedClientData implementations.

This implementation creates and hashes the client_data_json, and inserts it back into the response type as normal.