# maxcountryman/axum-login

🪪 User identification, authentication, and authorization for Axum.

Repository: https://github.com/maxcountryman/axum-login
Canonical: https://ross.abutalabs.com/products/axum-login
Language: Rust
License: MIT
License Family: permissive
Topics: axum, login, access-control, authentication, authorization
Last push: 2026-06-19T09:12:29+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 16, longevity 100
- inputs: {"age_days": 1467, "days_push": 75, "days_rel": 409, "gap_med": 158.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1021, forks 98 (observed 2026-08-28T04:03:15.918881+00:00)

## What it is
A Rust crate providing user identification, authentication, and authorization as tower middleware for the Axum web framework. It supports arbitrary user backends, user/group permissions, and route protection built on tower-sessions.

## Use cases
- add login and session-based authentication to an axum web app
- protect routes so only logged-in users can access them
- implement role or group-based permissions in a Rust web service
- authenticate users against a custom database, LDAP, or third-party auth provider
- manage user sessions in an axum application

## When to choose
- you're building a web service with axum and need authentication middleware
- you want flexible support for custom user types and auth backends
- you need both authentication and fine-grained authorization with permissions

## When to avoid
- you're not using axum or the tower ecosystem
- you need a full turnkey identity provider with hosted login pages
- you need OAuth/OpenID Connect flows out of the box without writing a backend

## Facets
- artifact type: library
- maturity: active
- function: auth, authorization, middleware
- domain: web-development, backend, security
- platform: rust
- tags: axum, tower, sessions, login, rust-library, session-management, web-server

## Member repositories
- maxcountryman/axum-login (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:15.918881+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:08:51.081853+00:00, confidence not recorded.
  - readme: https://github.com/maxcountryman/axum-login (fetched 2026-08-28T04:03:15.918881+00:00, sha 4acf805596e6)
  - registry_crates: https://crates.io/api/v1/crates/axum-login (fetched 2026-08-29T13:09:05.052178+00:00, sha bd888b949692)
- Data as of 2026-08-30T08:39:29.467469+00:00.
