https://github.com/danielmackay/dotnet-config-multi-tenancy
https://github.com/danielmackay/dotnet-config-multi-tenancy
configuration dotnet dotnet-core multi-tenancy
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielmackay/dotnet-config-multi-tenancy
- Owner: danielmackay
- License: other
- Created: 2023-05-04T07:11:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T07:12:08.000Z (about 3 years ago)
- Last Synced: 2023-08-01T23:05:07.941Z (almost 3 years ago)
- Topics: configuration, dotnet, dotnet-core, multi-tenancy
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dotnet-multi-tenant-configuration
PoC to show configuration working in a multi-tenant environment.
## Usage
1. Send HTTP request to GET `https://localhost:7245/config/email`
2. Confirm global configuration is returned
3. Add a header called `Tenant` with a value of `TenantA`
4. Confirm TenantA configuration is returned
5. Add a header called `Tenant` with a value of `TenantB`
6. Confirm TenantB configuration is returned
7. Add a header called `Tenant` with a value of `TenantC`
8. 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.