Skip to main content

Module credential

Module credential 

Source
Expand description

WebAuthn credential descriptor and protocol DTOs (options, responses, results).

This module is storage-free. It defines the WebauthnCredential record (including the sign-count state that callers must persist) and the JSON wire structures exchanged with the browser. Persisting, looking up, and updating credentials is the integrator’s job; see the crate-level documentation for the recommended storage contract.

Structs§

AllowCredential
Credential allowed for authentication.
AuthenticationOptions
Options sent to the client for authentication (navigator.credentials.get()).
AuthenticationResponse
Response from the client during authentication (navigator.credentials.get() response).
AuthenticationResult
Result of a successful authentication.
AuthenticatorSelection
Authenticator selection criteria.
ExcludeCredential
Credential to exclude from registration (prevent re-registration).
PubKeyCredParam
Public key credential parameter (algorithm + type).
RegistrationOptions
Options sent to the client for credential registration (navigator.credentials.create()).
RegistrationResponse
Response from the client during registration (navigator.credentials.create() response).
RegistrationResult
Result of a successful registration.
RelyingParty
Relying party descriptor.
WebauthnCredential
A registered WebAuthn credential.
WebauthnUser
User descriptor for registration.