Expand description
§Passkey Client
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 aCredentialStore
, aUserValidationMethod
and, optionally, an implementation ofpublic_suffix::EffectiveTLDProvider
. - Default
Client Data - The client data and its hash will be automatically generated from the request according to the WebAuthn specification.
- Default
Client Data With Custom Hash - 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.
- Default
Client Data With Extra - 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.
- RpId
Verifier - Wrapper struct for verifying that a given RpId matches the request’s origin.
Enums§
- Origin
- The origin of a WebAuthn request.
- Webauthn
Error - Errors produced by Webauthn Operations.
Traits§
- Client
Data - A trait describing how client data should be generated during a WebAuthn operation.