Open Closed

multi-tenant in project web.public #4124


User avatar
0
yasin.hallak.89@gmail.com created

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi there.

Is there any way to use multi-tenant in project web.public


7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What is the purpose of using it?

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    hi

    What is the purpose of using it?

    I have multi-tenant and I want to display only data for every tenant in public site

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Did you use the Tiered project? Please check the appsettings.json of web.public

    if so, the web.public will get data from api, which means you don't need to enable the multi-tenant feature.

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    hi

    Did you use the Tiered project? Please check the appsettings.json of web.public

    if so, the web.public will get data from api, which means you don't need to enable the multi-tenant feature.

    hi I didn't use Tieredproject

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I didn't use Tieredproject

    The project already enabled the multi-tenant feature.

    if (MultiTenancyConsts.IsEnabled)
    {
        app.UseMultiTenancy();
    }
    
    
  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    I didn't use Tieredproject

    The project already enabled the multi-tenant feature.

    if (MultiTenancyConsts.IsEnabled) 
    { 
        app.UseMultiTenancy(); 
    } 
     
    

    Okay I know, but how I can distinguish between tenants for the anonymous users without login

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    how I can distinguish between tenants for the anonymous users without login

    I think you can't do this.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11