Skip to main content

Module auth

Module auth 

Source

Macros§

permit

Structs§

AuthConf
AuthUser
Authenticator
CookieConf
JWTClaim
Permit
PermitAll
PermitAny
TokenPair

Enums§

AuthError

Traits§

BitRole

Functions§

check_password
Verify a Django-compatible password hash. Returns Ok(true) when passwords match.
format_roles
make_password
Create a Django-compatible password hash using PBKDF2.
unusable_password
Create a Django-compatible unusable password marker.

Type Aliases§

RoleType

Derive Macros§

BitRole
Derives the BitRole trait for role-based access control.