Open Closed

External provider Tenant / Host #7206


User avatar
0
andmattia created
  • ABP Framework version: v7.4.5
  • UI Type: Angular
  • Database System: PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

I've configured my host with AzureAD and I'm able to login on host, so I move to a tenant to try to login so I see the button to login with OpenIdConnection. I check in administration settings and I see that my provider has a checkbox to override settings from host. So if i don't to use openIdConnection provider in tenant is not possibile beacuse If I uncheck the OpenIdProvider "Use host settings" and leve all blanks I still using host provider.

I think is a big issue in a multitenat enviroment. My goal is use my openId provider for host but not all tenant can use it if a tenant need it can set it up on administration area.

I try to chage json on db enable for host disable for tenant but host win at all.


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

    hi

    My goal is use my openId provider for host but not all tenant can use it if a tenant need it can set it up on administration area.

    You can override the ExternalProviderSettingsHelper to implement this.

    abp/account/src/Volo.Abp.Account.Pro.Shared.Application/Volo/Abp/Account/ExternalProviders/ExternalProviderSettingsHelper.cs

    Download the account pro module to check its source code.

  • User Avatar
    0
    andmattia created

    Can you give more details?

    I see the class

    public class ExternalProviderSettingsHelper : ITransientDependency
    {
        //...
    }
    

    How can override it. I don't have a specific interface? And where I do it? In Auth Server or in IdentityService (I'm in a Tye/microservice solution)

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer
    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(ExternalProviderSettingsHelper))]
    public class MyExternalProviderSettingsHelper : ExternalProviderSettingsHelper
    {
        //...
    }
    
    

    You can check the _currentTenant usage in this class and change it to fit your case.

  • User Avatar
    0
    andmattia created

    Ok.

    I'll try but I need to do that on AuthServer, on IdentityService or both?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try to override it on AuthServer

  • User Avatar
    0
    andmattia created

    I'll try it

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 09, 2025, 06:20