🏢 Multi-Tenant Architecture Overview

This application demonstrates a nested multi-tenant architecture where organizations contain multiple clients, each with isolated authentication and data.

🏢 Organization Level

  • • Each organization has its own subdomain/slug
  • • Organization admins can manage multiple clients
  • • Shared resources and settings across clients
  • • Organization-wide user management
Example: /org/acme-corp

🎯 Client Level

  • • Complete data isolation between clients
  • • Separate authentication for each client
  • • Client-specific configurations and branding
  • • Individual user access controls
Example: /org/acme-corp/client/client-a

🔐 Authentication Strategy

Global Auth

Main application authentication for organization access

Org-Scoped Auth

Users can access multiple clients within their organization

Client-Scoped Auth

Separate login for each client with isolated user data