| Crates.io | axum-login-bearer |
| lib.rs | axum-login-bearer |
| version | 0.1.0 |
| created_at | 2025-12-19 13:55:19.188109+00 |
| updated_at | 2025-12-19 13:55:19.188109+00 |
| description | Extending axum-login to support bearer tokens. |
| homepage | https://github.com/metatoaster/axum-login-bearer |
| repository | https://github.com/metatoaster/axum-login-bearer |
| max_upload_size | |
| id | 1994803 |
| size | 100,797 |
Leverage well-established patterns provided by axum-login, but also
with bearer tokens.
This crate provides a BearerTokenAuthManager that can either operate
on its own, which sets up the AuthManager from the axum-login crate
to provide the AuthSession to provide the familiar interface to deal
with the identification, authentication and authorization of users. It
can also be set up with the usual SessionmanagerLayer to also provide
the typical cookie-backed sessions should both be desired.
The end result is that a bearer token provided with a request will be able to function in place of the session cookie to identify the user's session.
There are configuration options that changes how it behaves, please refer to the documentation and the sqlite-bearer example.