Base solution for your next web application
Open Closed

Multi tenant app with sub-domains set up using Azure Front door logs in with Super admin regardless of the tenant in the URL #11672


User avatar
0
nvisionit created

Project Specs

  • ASP.NET CORE & Angular .NET 6.0 v11.2.1
  • Angular
  • .NET Core

Setup

We're using Azure Front Door custom domain for the .Net Core app service and setup the appsetings to read as follows

"ServerRootAddress": "https://{TENANCY_NAME}.domain.cloud", "ClientRootAddress": "https://{TENANCY_NAME}.app.domain.cloud",

Issue:

  • The web app does not have the tenancy selector as expected.
  • The API still shows tenancy selection on login
  • When we login the super admin page shows instead of the tenant data.

What we've done

  • Added the DomainTenantResolveContributor.cs and added it to the PreInitialize method to no avail.

Thanks!


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

    Hi @nvisionit

    Could you share your app's live URL with [email protected] ? We can check it on the live app. If you are using Angular template, hiding the tenancy name on login page is not implemented yet when you use subdomain as tenancy name.