Base solution for your next web application
Open Closed

multitenant - Single Deployment - Multiple Database #10081


User avatar
0
rsbdotph created

version: 10.2 product type: MVC framework type: .net core

My project is a multitenant - single instance with each tenant having its own database. I need help to do this:

  1. Login using email and password.
  2. Upon successful login, the system will identify his tenant based on the unique email.
  3. The system will connect to the correct tenant database.

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

    Hi @rsbdotph

    If your app doesn't know the tenant before login, you can first find the user's tenant in AbpUserAccounts table by querying this table with user's email address. Then, you can swithc to tenant context and execute the login operation. Rest of the process should work liek you want.