Base solution for your next web application
Open Closed

select tenant based on subdomain in multi-tenant setup from incoming URL #11700


User avatar
0
pliaspzero created

Hi,

Version used: Angular & ASPNET core V12.1

I needs to setup (without using the appsettings.json) a scenario, that tenant is automatilly selected on login page based on subdomain in multi-tenant setup from incoming URL

Example https://tenant1.myURL.com -> tenant1 is selected on the login page

https://tenant2.myURL.com -> tenant2 is selected on the login page .........

How could that work?

thanks!


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @pliaspzero

    You need to set appBaseUrl in appconfig.production.json under your angular app. You neet to set it to https://{TENANCY_NAME}.myURL.com