OxideAuth is a secure, asynchronous Authentication, and Identity Management service built with Rust.
Designed as a robust backend microservice, it demonstrates systems-level performance, memory-safe concurrency, and modern security best practices. It provides a complete foundation for user registration, role-based access control (RBAC), and session management.
| Component | Technology | Purpose |
|---|---|---|
| Language | Rust (Edition 2021) | Memory safety, zero-cost abstractions, performance |
| Web Framework | axum + tower |
Ergonomic, modular routing and middleware |
| Database | sqlx + PostgreSQL |
Async, purely Rust SQL driver with query macros |
| Cache | redis-rs + Redis |
Extremely fast state for rate limits and blocklists |
| Crypto | argon2 & jsonwebtoken |
Industry-standard password hashing and signing |
- Rust toolchain (latest stable)
- Docker & Docker Compose
sqlx-cli(cargo install sqlx-cli --no-default-features --features rustls,postgres)
-
Clone the repository
git clone https://github.com/ttheghost/OxideAuth.git cd oxide-auth -
Spin up the infrastructure (Postgres & Redis)
docker-compose up -d
-
Set up the environment
Copy the example environment file:
cp .env.example .env
Mohammed Ifkirne
- Website & Blog: 0xghost.dev
This project is licensed under the MIT License – see the LICENSE file for details.