Rust

ceremony

Module

Passkey registration and sign-in ceremonies: the options sent to the browser, the state kept in between, and the verification of what comes back.

Contents

use utopia_auth::passkeys::ceremony::Ceremony;
Rust
pub struct Ceremony

WebAuthn registration and sign-in for one relying party: discoverable credentials, required user verification, no attestation.

use utopia_auth::passkeys::ceremony::Challenge;
Rust
pub struct Challenge

A started ceremony: options for the browser and the opaque state to keep until the credential comes back.

use utopia_auth::passkeys::ceremony::Counter;
Rust
pub struct Counter

The signature counter policy: the counter must increase, except for synced (backup-eligible) passkeys and authenticators without a counter (always 0).

use utopia_auth::passkeys::ceremony::Credential;
Rust
pub struct Credential

A verified passkey: the record to store and the identifier to find it by.

use utopia_auth::passkeys::ceremony::StrictCounter;
Rust
pub struct StrictCounter

The strict signature counter policy: the counter must always increase.

Rust
pub const TIMEOUT: i64 = 300

Seconds a ceremony stays valid.