Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

External Authentication by Tenant #1871


User avatar
0
walkerscott created

Is is possible to enable external authentication by Tenant?

For example:

  • Host = Abp authentication
  • Tenant 1 = Abp authentication
  • Tenant 2 = LDAP authentication only
  • Tenant 3 = Mixed authentication (AD + Abp)

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

    Hi,

    Ldap is actually designed for single tenant apps in AspNet Zero template, so what you are asking is not possible by default. You can do it but it requires some changes.

    You can add two feature to your application, lets call them "AbpLoginFeature" and "LdapLoginFeature" and you need to act according to those feature values of a tenant in the Login action of Account controller.

    You also need to configure Ldap settings (AD server address, username and password etc..) for the tenants who has "LdapLoginFeature" enabled.

    If you want to try this, we can always help you if you have any problems.

  • User Avatar
    0
    walkerscott created

    Thanks for the reply, this is what I was expecting.

    Thanks also for the pointer on using Tenant Features to apply this functionality.