Multi-tenancy | Blazor
When security is enabled Radzen offers multi-tenancy support (not available in community version). Multi-tenancy allows single instance of Radzen application to serve multiple tenants.
When multi-tenancy is enabled, Radzen will seed tenantsadmin user (tenantsadmin/tenantsadmin login credentials) as part of security tables migrations (server/Data/Migrations folder) that can be used to add tenants runtime during development and when the application is deployed:
We strongly advise you to change this user password before deploying the application. You can do that from the profile page:
When you create tenants you can choose which tenant is active from the DataGrid “Switch tenant” button:
You can add, update and delete tenants.
Both tenant Name and Hosts are mandatory:
Hosts can be single or comma separated hosts where the application for this tenant will be deployed:
Once you have active tenant you can add roles and users for this tenant:
When role/user is created the active tenant is assigned automatically as tenant for the newly created role/user. Now when login with a user in development the application will use user tenant as active tenant.
Users sign-up is available for deployed applications only where the new user tenant will be retrieved from the application host.
Deploy to IIS
1. Create new
radzen-rocks.com web site in your IIS with following bindings.
2. Modify your hosts (
%WINDIR%\system32\drivers\etc\hosts) file to simulate hypothetical domains locally.
... 127.0.0.1 radzen-rocks.com 127.0.0.1 tenant1.radzen-rocks.com 127.0.0.1 tenant2.radzen-rocks.com ...
3. Deploy the application from Radzen and browse tenants.