PoC to show configuration working in a multi-tenant environment.
- Send HTTP request to GET
https://localhost:7245/config/email
- Confirm global configuration is returned
- Add a header called
Tenant
with a value ofTenantA
- Confirm TenantA configuration is returned
- Add a header called
Tenant
with a value ofTenantB
- Confirm TenantB configuration is returned
- Add a header called
Tenant
with a value ofTenantC
- Confirm global configuration is returned
In a real-world environment, the tenant would come from a claim inside a JWT token or cookie. However, the principle is the same.