- 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)
-
0
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.
-
0
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)
-
0
[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. -
0
Ok.
I'll try but I need to do that on AuthServer, on IdentityService or both?
-
0
hi
You can try to override it on
AuthServer
-
0
I'll try it