5 releases

Uses new Rust 2021

0.1.4 Apr 16, 2022
0.1.3 Jan 20, 2022
0.1.2 Jan 7, 2022
0.1.1 Dec 23, 2021
0.1.0 Dec 18, 2021

#174 in Authentication

47 downloads per month

MIT license

220KB
4.5K SLoC

Humphrey Auth

A simple authentication system which integrates with Humphrey.
Guide · API Reference



Web applications commonly need a way of authenticating users. This crate provides an easy and secure way to do this, integrating with Humphrey using the AuthApp trait and allowing complete control over the database users are stored in. Humphrey Auth does not come with a database, but the AuthDatabase trait is implemented for Vec<User> to get started. For a production use, you should use a proper database and implement the AuthDatabase trait for it.

Learn more about Humphrey Auth here.


lib.rs:

Web applications commonly need a way of authenticating users. This crate provides an easy and secure way to do this, integrating with Humphrey using the AuthApp trait and allowing complete control over the database users are stored in. Humphrey Auth does not come with a database, but the AuthDatabase trait is implemented for Vec<User> to get started. For a production use, you should use a proper database and implement the AuthDatabase trait for it.

If a JSON representation of users is useful for your database, you can enable the json feature which provides JSON serialization and deserialization for User and Session using the Humphrey JSON crate.

Learn more about Humphrey Auth here.

Dependencies

~1MB
~17K SLoC