I don't know which option Vladimir is discussing, as this is not available in the Keycloak UI. Perhaps he is using a highly customized Keycloak version...
Keycloak offers a range of flexible customization options, empowering you to hide the IdP login option for specific clients in the following ways:
- Use a generic custom theme for all of your clients based on the keycloak login theme and add a filter/conditional logic around the identity provider / social login template fragment on the server side, which hides the social login options for some clients, see:
https://github.com/keycloak/keycloak/blob/main/themes/src/main/resources/theme/base/login/login.ftl#L90- A simpler solution might be to include a javascript snippet in the theme that detects the used client from the URL parameters and simply hides the social login option
- Another option is to leverage Keycloak's client specific login theme feature -> just create a custom "minimal" theme that overloads the login.ftl from the keycloak/base login theme and simply remove the identity provider / social login template fragment