Base solution for your next web application
Open Closed

Custom domains under Azure Front Door opening the application as a super admin all the time #11071


User avatar
0
shedspotter created

What is your product version? 11.0.0

What is your product type (Angular or MVC)? Angular

What is product framework type (.net framework or .net core)? .NET 6

Hi, we are facing the same issue like this https://support.aspnetzero.com/QA/Questions/9644/tenantId-null-on-Tenant-Custom-domains-under-Azure-Front-Door , we have applied all the suggestion which you guys provided in the ticket but it does not work and so we have search it for the solution and we have found one solution https://www.phillipsj.net/posts/using-azure-front-door-with-dotnet-core/ https://github.com/phillipsj/dotnetcore-frontdoorservice-issue/blob/master/README.md

Please let us know if we go with the finded solution. it is secure or not and also if it is not secure please provide a solution for the same

Thanks


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

    Hi @shedspotter

    Could you share how would you like to use a custom domain ? For example, would you like customer to access a specific tenant when visiting a custom URL ?

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas Yes, we are allowing user to access there tenant which they mapped with there custom domain

  • User Avatar
    0
    shedspotter created

    HI @ismcagdas any update on the issue

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    In that case, you need to create a similar class to https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs. Then, you need to add it to Configuration.MultiTenancy.Resolvers in your module's PreInitialize method.

    In your custom DomainTenantResolveContributor class, you need to somehow check the custom domain name and return the correct tenantId.