Auth Workspace: A Hexagonal Auth/authz Library For Axum + Postgres (v0.1.0, Feedback Welcome)
Hi everyone! I just released my first open-source project: a hexagonal
auth/authz library and standalone service in Rust.
users, global and scoped roles (the scope is an opaque string like
project:42, the consuming service decides what it means), permissions
sessions with refresh-token rotation; rotation runs in one transaction
with SELECT ... FOR UPDATE, and replaying a revoked refresh token
revokes all of the user's sessions
Argon2id password hashing, JWT access tokens (HS256)
runtime settings stored in the DB (e.g. toggling self-registration
without a redeploy)
Axum router, Postgres via sqlx, tracing exported to Jaeger over OTLP
a lightweight JWT verifier for third-party services that only need to
check a token without touching the auth database
unit tests on in-memory ports plus integration tests with testcontainers
You can embed it as a library in your own Axum service, or run
auth-server as a standalone HTTP service.