Module webauthn_rs::core[][src]

Expand description

Webauthn-rs - Webauthn for Rust Server Applications

Webauthn is a standard allowing communication between servers, browsers and authenticators to allow strong, passwordless, cryptographic authentication to be performed. Webauthn is able to operate with many authenticator types, such as U2F.

This library aims to provide a secure Webauthn implementation that you can plug into your application, so that you can provide Webauthn to your users.

For examples, see our examples folder.

To use this library yourself, you will want to reference the WebauthnConfig trait to develop site specific policy and configuration, and the Webauthn struct for Webauthn interactions.

Structs

The in progress state of an authentication attempt. You must persist this associated to the UserID requesting the registration.

The in progress state of a credential registration attempt. You must persist this associated to the UserID requesting the registration.

This is the core of the Webauthn operations. It provides 4 interfaces that you will likely use the most:

Traits

The WebauthnConfig type allows site-specific customisation of the Webauthn library. This provides a set of callbacks which are used to supply data to various structures and calls, as well as callbacks to manage data persistence and retrieval.