webauthn-authenticator-rs

Crates.iowebauthn-authenticator-rs
lib.rswebauthn-authenticator-rs
version0.5.0
sourcesrc
created_at2020-10-24 00:51:03.399138
updated_at2024-04-28 04:08:51.575531
descriptionWebauthn Authenticator Client Library
homepage
repositoryhttps://github.com/kanidm/webauthn-rs
max_upload_size
id304898
size955,347
micolous (micolous)

documentation

README

webauthn-authenticator-rs

WebAuthn is a modern approach to hardware based authentication, consisting of a user with an authenticator device, a browser or client that interacts with the device, and a server that is able to generate challenges and verify the authenticator's validity.

This library is the client half of the authenticator process, performing the steps that would normally be taken by a web browser. Given a challenge from a Webauthn server, this library can interface with a CTAP2 device and transform the response to a Webauthn registration or assertion (authentication).

Development

Building docs

This library contains extensive documentation in rustdoc format. You can build this with:

cargo doc --no-deps --document-private-items

This library includes many references to module-private items to explain how protocols work, so we use --document-private-items.

By default, this won't add any features, so you'll want to add them with --features ..., or use --all-features (which pulls in many dependencies).

To build all docs in a way that annotates which modules and functions are avaliable with which features:

  1. Install Rust nightly:

    rustup toolchain install nightly
    
  2. Build the documentation with:

    RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --no-deps --document-private-items
    

    Or with PowerShell (Windows):

    $Env:RUSTDOCFLAGS = "--cfg docsrs"
    cargo +nightly doc --no-deps --document-private-items
    
Commit count: 364

cargo fmt