KEYCLOAK-2429
Disabled Google Identity Provider still kicks in when 'Authenticate by default' is enabled
This commit is contained in:
parent
5f41215e27
commit
635ccae144
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ public abstract class AuthorizationEndpointBase {
|
||||||
|
|
||||||
List<IdentityProviderModel> identityProviders = realm.getIdentityProviders();
|
List<IdentityProviderModel> identityProviders = realm.getIdentityProviders();
|
||||||
for (IdentityProviderModel identityProvider : identityProviders) {
|
for (IdentityProviderModel identityProvider : identityProviders) {
|
||||||
if (identityProvider.isAuthenticateByDefault()) {
|
if (identityProvider.isEnabled() && identityProvider.isAuthenticateByDefault()) {
|
||||||
// TODO if we are isPassive we should propagate this flag to default identity provider also if possible
|
// TODO if we are isPassive we should propagate this flag to default identity provider also if possible
|
||||||
return buildRedirectToIdentityProvider(identityProvider.getAlias(), new ClientSessionCode(realm, clientSession).getCode());
|
return buildRedirectToIdentityProvider(identityProvider.getAlias(), new ClientSessionCode(realm, clientSession).getCode());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue