axum-login v0.2.0 released
axum-login is a Tower middleware providing session-based user authentication for axum
applications:
- Decouples user storage from authentication
- Supports arbitrary user types and arbitrary storage backends
- Provides methods for: logging in, logging out, and accessing current user
- Wraps axum-sessions to provide flexible sessions
- Leverages tower\_http::auth::RequireAuthorizationLayer to protect routes
The library is inspired by prior art, such as django.contrib.auth. In its current state it implements a fundamental workflow however as additional use cases arise the intent is to incorporate those as extensions to the crate's API.