Join our FREE personalized newsletter for news, trends, and insights that matter to everyone in America

Newsletter
New

Auth Workspace: A Hexagonal Auth/authz Library For Axum + Postgres (v0.1.0, Feedback Welcome)

Card image cap

Hi everyone! I just released my first open-source project: a hexagonal
auth/authz library and standalone service in Rust.

Repo: GitHub - ulan-reader/my-auth-rust-workspace: Hexagonal auth/authz service and library in Rust: scoped roles, sessions with refresh-token rotation, Axum + Postgres · GitHub

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.

This story was first published by users.rust-lang.org.
Continue reading at users.rust-lang.org ›

More Dating stories