Expand description
⛔ 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 :).
§Mini Rust Auth
Some people say that you should never implement you own auth and they are here I am doing it maybe wrong. This was developed for a personal project and I delivery it with no grantee of it working.
§Goal
This crate builds out a easy to work with API for auth. 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 a api that can be used in any project.
It also provides rust_auth::wrappers
which provides wrappers around the functions in rust_auth::auth
that can be used with actix_web as endpoints.
The binary built delivers a actix_web based api.
§Security notes
This is based on ‘Argon2’ as of now. All commination should be done over tls. If you want yo use this feel free but be aware that I am no security expert.
Modules§
- auth
- A set of base functions that are used to do all the underlying work of auth. This includes user and session management.
- session
- Provides function wrappers around the
auth
module which are ready to be used as endpoints in actix web. Made to interact with a actix_session session. Mainly this is only needed for session management. User creation is not effected. This should be more easily used inside other projects. As long as a session is present. This saves you from needing to build your own wrappers around actix session or managing cookies yourself. - wrappers
- Provides function wrappers around the
auth
module which are ready to be used as endpoints in actix web.