- What is your product version? 8.1
- What is your product type (Angular or MVC)? MVC & jQuery
- What is product framework type (.net framework or .net core)? core
We have deployed the ANZ dashboard to our production server for first client. The network administrator configured to accept local requests for https://abc.hostcompany.com in case of first tenant and impersonation works for that tenant. Host site can also be accesible from https://dashboard.hostcompany.com.
After above two sites working, when we try to impersonate by other tenant user from the host account, it does not work. It is not able to redirect and complains that site does not exists (for other tenants).
Then while searching for answesr I found thread 8835 where it says, "Wildcard domain names don't seem to work." appsettings.json content is as below :
"App": {
"WebSiteRootAddress": "https://{TENANCY_NAME}.hostcompany.com/",
"RedirectAllowedExternalWebSites": "https://{TENANCY_NAME}.hostcompany.com/",
"SwaggerEndPoint": "/swagger/v1/swagger.json"
},
I have also tried to change "RedirectAllowedExternalWebSites" with tenant specific multiple URLs but it does not work. So, does it require to define/allow all tenant specific subdomains to be setup in order to make it work? Is there any correction required for above mentioned settings or as per thread #8835 answer wild card can't work?
Please advice. Thanks.
3 Answer(s)
-
0
Hi @ISTeam
Can you directly access the tenant webiste (for example https://tenant1.hostcompany.com) for the tenant which impersonation fails ?
-
0
Thanks @ismcagdas for your response. No. Unfortunately I can access the configured tenant website https://abc.hostcompany.com but not for rest of the tenant with and wout impersonation - https://tenant1.hostcompany.com or for any of the remaining tenants.
Also, similar to thread 8835 I also found similar comment here in the first answer on abp boilerplate forum.
-
0
Hi @ISTeam
Then, probably there is a missing configuration on your website hosting. You can check https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Overview-Core#multi-tenancy. Probalby your network administrator can make this configuration for you. Basically you need to redirect all subdomains (https://*.hostcompany.com)) to same application on your web server.