← All projects

Multi-Tenant SaaS Backend with FastAPI

Multi-Tenant SaaS Backend with FastAPI

Core features: JWT authentication with access + refresh tokens, organization/workspace management (multi-tenancy), role-based access control (Owner → Admin → Member → Viewer), API rate limiting via Redis, full audit logging, and subscription plans (Free/Starter/Pro/Enterprise) with usage limits.

Key engineering decisions: strict tenant data isolation with every query scoped by organization ID, layered dependency-injection architecture for auth & permission checks, an async-first design throughout (database, Redis, API), and an automated test suite covering auth flows.

AlembicDockerJWTPostgreSQLPythonRedisFastAPI

Related projects