Skip to main content

CeremonyVerifier

Trait CeremonyVerifier 

Source
pub trait CeremonyVerifier: Send + Sync {
    // Required methods
    fn verify_registration(
        &self,
        challenge_bytes: &[u8],
        client_data_json_b64: &str,
        attestation_object_b64: &str,
        rp_id: &str,
        rp_origins: &[String],
    ) -> Result<RegistrationResult, WebauthnError>;
    fn verify_authentication(
        &self,
        params: &AuthenticationParams,
    ) -> Result<AuthenticationResult, WebauthnError>;
}
Expand description

The ceremony surface of webauthn-kit, as a trait: the crypto is the kit’s tested code in production; tests inject outcomes so the challenge state machine, store interactions, and error mapping here are covered without fabricating ES256 signatures.

Required Methods§

Source

fn verify_registration( &self, challenge_bytes: &[u8], client_data_json_b64: &str, attestation_object_b64: &str, rp_id: &str, rp_origins: &[String], ) -> Result<RegistrationResult, WebauthnError>

Verifies a registration ceremony against the stored challenge.

Source

fn verify_authentication( &self, params: &AuthenticationParams, ) -> Result<AuthenticationResult, WebauthnError>

Verifies an authentication ceremony for a known credential.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§