From 84f5b7ad0bb2f7ff08ec51517d1759bed004be95 Mon Sep 17 00:00:00 2001 From: Felix Gruenbauer Date: Thu, 10 Apr 2025 14:36:55 +0200 Subject: [PATCH] add `hideOnLogin` parameter to keycloak idp module --- plugins/modules/keycloak_identity_provider.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/modules/keycloak_identity_provider.py b/plugins/modules/keycloak_identity_provider.py index 68a31a227b..3d1ec624da 100644 --- a/plugins/modules/keycloak_identity_provider.py +++ b/plugins/modules/keycloak_identity_provider.py @@ -124,6 +124,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(hide_on_login_page) in the O(config) dict + 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). @@ -490,6 +499,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), )