[backport-1.7]: Keycloak IDP - generalize configuration parameter

A solution for issue #4588 (closed) needs to be backported to 1.7.x