...
Code Block |
---|
"Tenants": { "Tenant1": { "ConnectionStrings": { "EdFi_Admin": "Server=(local); Database=EdFi_Admin_Tenant1; Integrated Security=True; Application Name=AdminApi;", "EdFi_Security": "Server=(local); Database=EdFi_Security_Tenant1; Integrated Security=True; Application Name=AdminApi;" } }, "Tenant2": { "ConnectionStrings": { "EdFi_Admin": "Server=(local); Database=EdFi_Admin_Tenant2; Integrated Security=True; Application Name=AdminApi;", "EdFi_Security": "Server=(local); Database=EdFi_Security_Tenant2; Integrated Security=True; Application Name=AdminApi;" } } } |
Request header
Admin API clients must use request header to carry the well-known tenant identifier.
Tenant specific request header key: tenant
Tenant specific request header value: <Tenant-Id>
Note: The requests from Swagger UI don’t automatically include tenant identifier in the headers. So, if user enables Swagger UI and MultiTenancy,
then “DefaultTenant” should be configured as follows in the appSettings file:
Code Block |
---|
"SwaggerSettings": {
"EnableSwagger": true,
"DefaultTenant": "Tenant1"
} |
So, all the requests from Swagger UI will be using “DefaultTenant” as tenant identifier.