6 releases

0.1.5 Oct 11, 2023
0.1.4 Apr 16, 2022
0.1.3 Jan 20, 2022
0.1.1 Dec 23, 2021

#497 in Authentication

33 downloads per month

MIT license

275KB
5.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
~21K SLoC