axum-login-bearer

Crates.ioaxum-login-bearer
lib.rsaxum-login-bearer
version0.1.0
created_at2025-12-19 13:55:19.188109+00
updated_at2025-12-19 13:55:19.188109+00
descriptionExtending axum-login to support bearer tokens.
homepagehttps://github.com/metatoaster/axum-login-bearer
repositoryhttps://github.com/metatoaster/axum-login-bearer
max_upload_size
id1994803
size100,797
Tommy Yu (metatoaster)

documentation

README

CI crates.io docs.rs

axum-login-bearer

Leverage well-established patterns provided by axum-login, but also with bearer tokens.

Overview

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.

Commit count: 0

cargo fmt