Crate passkey_client

Source
Expand description

§Passkey Client

github version documentation

This crate defines a Client type along with a basic implementation of the Webauthn specification. The Client uses an Authenticator to perform the actual cryptographic operations, while the Client itself marshals data to and from the structs received from the Relying Party.

This crate does not provide any code to perform networking requests to and from Relying Parties.

Structs§

Client
A Client represents a Webauthn client. Users of this struct should supply a CredentialStore, a UserValidationMethod and, optionally, an implementation of public_suffix::EffectiveTLDProvider.
DefaultClientData
The client data and its hash will be automatically generated from the request according to the WebAuthn specification.
DefaultClientDataWithCustomHash
The client data will be automatically generated from the request according to the WebAuthn specification but it will not be used as a base for the hash. The client data hash will instead be provided by the caller.
DefaultClientDataWithExtra
The extra client data will be appended to the automatically generated client data. The hash will be automatically generated from the result client data according to the WebAuthn specification.
RpIdVerifier
Wrapper struct for verifying that a given RpId matches the request’s origin.

Enums§

Origin
The origin of a WebAuthn request.
WebauthnError
Errors produced by Webauthn Operations.

Traits§

ClientData
A trait describing how client data should be generated during a WebAuthn operation.