Tenant Configuration
The tenant is the top-level entity that groups all configurations for a specific organization or application. You must create a tenant before configuring any other settings.
Table name: tenant
| Field | Type | Description |
|---|---|---|
| id | CHAR(10) | Unique tenant identifier (Primary Key) |
| name | VARCHAR(256) | Human-readable tenant name |
| created_at | TIMESTAMP | Timestamp when tenant was created |
| updated_at | TIMESTAMP | Timestamp when tenant was last updated |
Creating a Tenant
Section titled “Creating a Tenant”To onboard a new tenant, insert a record into the tenant table:
INSERT INTO tenant (id, name)
VALUES ('tenant1', 'Tenant Name');Important Notes:
- The
idmust be unique and within 10 characters - The
namemust be unique across all tenants - Once a tenant is created, all other configurations use the tenant
id
Related Configurations
Section titled “Related Configurations”After creating a tenant, you need to configure:
- Client Configuration - Guardian client configuration
- Token Configuration - Guardian tokens configuration
- User Configuration - User service connection settings
These are required for all authentication flows.