#mini #add #state

bin+lib mini-rust-auth

A maybe to simple authentication crate

9 releases

0.1.8 Oct 27, 2024
0.1.7 Aug 5, 2024
0.1.3 Jul 25, 2024

#439 in Authentication

Download history 314/week @ 2024-07-22 151/week @ 2024-07-29 260/week @ 2024-08-05 6/week @ 2024-08-12 34/week @ 2024-09-16 9/week @ 2024-09-23 6/week @ 2024-09-30 119/week @ 2024-10-21 29/week @ 2024-10-28 5/week @ 2024-11-04

153 downloads per month

MIT license

53KB
982 lines

Mini Rust Auth

⛔ Warning ⛔

This crate is in a very early state, and there are still many features I plan to add. In all honesty, I don't think you should use it until this message is gone :).

Overview

Mini Rust Auth

Some people say that you should never implement your own auth, and here I am doing it, maybe wrong. This was developed for a personal project, and I deliver it with no guarantee of it working.

Goal

This crate builds out an easy-to-work-with API for authentication. It manages the creation, deletion, and verification of users. It also manages the creation, deletion, and validation of sessions.

Project Overview

  • The rust_auth::auth module provides an API that can be used in any project.
  • It also provides rust_auth::wrappers, which are wrappers around the functions in rust_auth::auth that can be used with actix_web as endpoints.
  • The binary built delivers an actix_web based API.

Security Notes

This crate is based on Argon2 for hashing. All communication should be done over TLS. If you want to use this, feel free, but be aware that I am no security expert.


This is a preliminary version and is still under development. Use it at your own risk.

License

Disturbed under MIT license.

Dependencies

~32–46MB
~1M SLoC