diff --git a/changelogs/fragments/9983-keycloak_idp-add-hideOnLogin-param.yml b/changelogs/fragments/9983-keycloak_idp-add-hideOnLogin-param.yml new file mode 100644 index 0000000000..00564ac768 --- /dev/null +++ b/changelogs/fragments/9983-keycloak_idp-add-hideOnLogin-param.yml @@ -0,0 +1,2 @@ +bugfixes: + - keycloak_identity_provider - add ``hideOnLogin`` parameter to the module, the old parameter ``config/hideOnLoginPage`` is kept for compatibility (https://github.com/ansible-collections/community.general/pull/9983). \ No newline at end of file diff --git a/plugins/modules/keycloak_identity_provider.py b/plugins/modules/keycloak_identity_provider.py index 40a06846d6..2e581815af 100644 --- a/plugins/modules/keycloak_identity_provider.py +++ b/plugins/modules/keycloak_identity_provider.py @@ -123,6 +123,15 @@ options: - providerId type: str + hide_on_login: + description: + - If hidden, login with this provider is possible only if requested explicitly, for example using the C(kc_idp_hint) + - Parameter was added in Keycloak 26, for older Keycloak versions use O(config.hide_on_login_page) + aliases: + - hideOnLogin + type: bool + version_added: 10.6.0 + config: description: - Dict specifying the configuration options for the provider; the contents differ depending on the value of O(provider_id). @@ -492,6 +501,7 @@ def main(): provider_id=dict(type='str', aliases=['providerId']), store_token=dict(type='bool', aliases=['storeToken']), trust_email=dict(type='bool', aliases=['trustEmail']), + hide_on_login=dict(type='bool', aliases=['hideOnLogin']), mappers=dict(type='list', elements='dict', options=mapper_spec), )