{"repo":"maxcountryman/axum-login","free":true,"listed":false,"github":"https://github.com/maxcountryman/axum-login","clone":"git clone https://github.com/maxcountryman/axum-login.git","description":"🪪 User identification, authentication, and authorization for Axum.","language":"Rust","stars":1017,"topics":["axum","login","access-control","authentication","authorization"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"axum-login 🪪 User identification, authentication, and authorization for Axum. 🎨 Overview This crate provides user identification, authentication, and authorization as a tower middleware for axum . It offers: - User Identification, Authentication, and Authorization : Leverage AuthSession to easily manage authentication and authorization. This is also an extractor, so it can be used directly in your axum handlers. - Support for Arbitrary Users and Backends : Applications implement a couple of traits, AuthUser and AuthnBackend , allowing for any user type and any user management backend. Your database? Yep. LDAP? Sure. An auth provider? You bet. - User and Group Permissions : Authorization is supported via the AuthzBackend trait, which allows applications to define custom permissions. Both user and group permissions are supported. - Convenient Route Protection : Middleware for protecting access to routes is available via the login required and permission required macros, and via the require builder ( require-builder feature). The builder is the long-term primary surface; macros are convenience wrappers over the same behavior. - Rock-solid Session Management : Uses tower-sessions for high-performing and ergonomic session management. Look ma, no deadlocks! 📦 Install To use the crate in your project, add the following to your Cargo.toml file: 🤸 Usage We recommend reviewing our [ sqlite example][sqlite-example]. There is also a template for cargo-generate using postgres. [!NOTE]","default_branch":null,"files":null,"tree":[],"storefront":"/r/maxcountryman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/maxcountryman/axum-login/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}