Open Closed

Use default tenant or not? #3371


User avatar
0
ryonkov created

We have already created a working ABP based solution for schools, different school districts log in via 3rd party provider to us. Based on the school district we auto log the user into the respective tenant. Each district is mapped to different tenant in abp.

Our client wants us to develop functionality for home school kids to register/log in to our abp portal directly (not via 3rd party provider). We have removed the option to select tenant to be easier for users to log in.

We have two options:

Option 1 Register the users and create the users with no tenant (same way the admin of the system is). Users can log in and we can log in as the system admin of the multitenant system on the same url.
Option 2 Register the user and use a "home school tenant" for all users that are logging like that. If we do that the question is how do we log in as system admin (since we have removed the option to select tenant from the screen?

Wich option would you recommend and why?

Thanks!


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

    hi

    You might consider determining tenants based on subdomain.

    https://docs.abp.io/en/abp/latest/Multi-Tenancy#domain-subdomain-tenant-resolver

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09