Welcome to AuthForge
AuthForge is a production-grade, multi-tenant authentication and authorization library for Python, built on FastAPI and SQLAlchemy.
Key Features
- Multi-Tenancy: Built-in support for multiple organizations.
- RBAC: Robust role-based access control with hierarchy.
- Security Hardened:
- Anomaly Detection (Risk Scoring)
- Device Fingerprinting
- Step-Up Authentication
- Brute-Force Protection
- Developer Friendly: Easy to integrate, comes with a beautiful demo UI.
Quick Start
from authforge import Auth
auth = Auth(
db_url="sqlite+aiosqlite:///./authforge.db",
jwt_secret="your-secure-secret"
)