Base solution for your next web application
Open Closed

Authentication that is not tenant aware #5224


User avatar
0
sedulen created

Hi, Is there is way to implement authentication that is not tenant aware so that authentication runs across all tenants, and if successful authentication, automatically set the tenant context to the 1st matching tenant? If we modify login/authentication to not require a tenant ID, can we still support multi-tenancy? TIA R. Gilbert


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

    Hi @sedulen,

    This is not suggested but possible. You can find user in AbpUserAccounts table and then set AbpSession.TenantId to found user's tenantId. This table (AbpUserAccounts) is a combination of all tenant users.

    If you only eliminate tenant in login screen, yes you can still support multi tenancy.