LrAU
LrAU is an authentication and permission management system for rust. It uses Argon2id to hash passwords to prevent against rainbow table and brute-forcing.
Example
Serde
Serde is supported through the serde
feature. If you configure in toml, you can get something like this:
[[]]
= ["contacts"]
= false
[[]]
= ["contacts", "name"]
= true
[[]]
= ["contacts", "name", "middle"]
= false
[[]]
= ["contacts", "name", "last"]
= true
[[]]
= ["admin"]
= false
[[]]
= ["admin", "passwords"]
= true
= true
mut
, be default, is assumed to be false
, so you only need to write it if you are enabling it.
Features
- Serde
serde
. - Diesel
diesel-support
. - Sqlx
sqlx-support
Note for migrators
0.5.0
In 0.4.0 all panacking functions have been made non-panacking. This decision was made because a web server really shouldn’t crash. This should mainly involve just adding ?
to the end of your function calls :)
0.3.0
Since version 0.3.0, instead of paths being strings they are now slices. This will cause issues with legacy code, preventing it to compile, and preventing serde information from being read.