Hi, I am evaulating Radzen Blazor Studio and I cannot make multi-tenant functionality work. The problem is that any user from second tenant cannot log into the app. Here are steps to reproduce the issue:
The Hosts field is used to determine the current tenant. If you browse your app from https://localhost:5001 it will always match the first tenant. There is a button in the Tenants data grid that allows you to switch the active tenant during development:
Hi Korchev,
I could see your point in the code but that is not the point. That is the reason I have host: t2.tenant.com for the second tenant. The problem happens also when I use this t2.tenant.com address.
I also debugged AccountController.cs and Login method and I could see that tenant variable and redirectUrl was correctly set because HttpContext.Request.Host.Value recognized t2 host.
You can try debugging the CurrentUser in AccountController as well and also ApplicationAuthenticationState. Maybe this would reveal what the problem is.