#fido2 #ctap #webauthn #passkey #passwordless

passkey-authenticator

A webauthn authenticator supporting passkeys

3 releases (breaking)

0.2.0 Dec 14, 2023
0.1.0 Jul 28, 2023
0.0.1 Feb 8, 2023

#541 in Authentication

Download history 1455/week @ 2023-12-18 687/week @ 2023-12-25 1079/week @ 2024-01-01 1274/week @ 2024-01-08 1292/week @ 2024-01-15 1667/week @ 2024-01-22 1335/week @ 2024-01-29 1100/week @ 2024-02-05 1287/week @ 2024-02-12 1822/week @ 2024-02-19 1484/week @ 2024-02-26 1337/week @ 2024-03-04 1601/week @ 2024-03-11 1378/week @ 2024-03-18 1444/week @ 2024-03-25 1383/week @ 2024-04-01

5,936 downloads per month
Used in 2 crates

MIT/Apache

250KB
3.5K SLoC

Passkey Authenticator

github version documentation

This crate defines an Authenticator type along with a basic implementation of the CTAP 2.0 specification. The Authenticator struct is designed in such a way that storage and user interaction are defined through traits, allowing only the parts that vary between vendors, but keeping the specification compliant implementation regardless of vendor. This is why the Ctap2Api trait is sealed, to prevent external implementations.

Why RustCrypto?

For targeting WASM, yes there are other cryptographic libraries out there that allow targeting WASM, but none of them are as easy to compile to wasm than the pure rust implementations of the RustCrypto libraries. Now this does come with limitations, so there are plans to provide a similar backing trait to "plug-in" the desired cryptography from a vendor. Work is ongoing for this.

Dependencies

~6–15MB
~177K SLoC