21 releases

0.5.0 Apr 28, 2024
0.5.0-dev Oct 31, 2023
0.4.9 Nov 16, 2022
0.3.2 Dec 29, 2021
0.3.0-alpha.1 Nov 28, 2020

#517 in Authentication

Download history 1183/week @ 2024-08-11 1145/week @ 2024-08-18 805/week @ 2024-08-25 677/week @ 2024-09-01 953/week @ 2024-09-08 659/week @ 2024-09-15 810/week @ 2024-09-22 1942/week @ 2024-09-29 1033/week @ 2024-10-06 1594/week @ 2024-10-13 1092/week @ 2024-10-20 1074/week @ 2024-10-27 895/week @ 2024-11-03 260/week @ 2024-11-10 1105/week @ 2024-11-17 524/week @ 2024-11-24

2,833 downloads per month
Used in 3 crates

MPL-2.0 license

1MB
19K SLoC

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
    

Dependencies

~6–52MB
~866K SLoC