From 79256b2bd2eaf2337d5cc72e0e48e5192d17586f Mon Sep 17 00:00:00 2001 From: whoamiUNIX <40315055+whoamiUNIX@users.noreply.github.com> Date: Tue, 5 Apr 2022 06:59:02 +0200 Subject: [PATCH] Keycloak client, Add always_display_in_console option (#4429) * Keycloak client, Add always_display_in_console option * Add 4429-keycloak-client-add-always-display-in-console.yml fragment. * Update changelogs/fragments/4429-keycloak-client-add-always-display-in-console.yml Co-authored-by: Felix Fontein * Update plugins/modules/identity/keycloak/keycloak_client.py Co-authored-by: Felix Fontein * Update plugins/modules/identity/keycloak/keycloak_client.py Co-authored-by: Felix Fontein Co-authored-by: Michal Vasko Co-authored-by: Felix Fontein --- ...-keycloak-client-add-always-display-in-console.yml | 3 +++ plugins/modules/identity/keycloak/keycloak_client.py | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 changelogs/fragments/4429-keycloak-client-add-always-display-in-console.yml diff --git a/changelogs/fragments/4429-keycloak-client-add-always-display-in-console.yml b/changelogs/fragments/4429-keycloak-client-add-always-display-in-console.yml new file mode 100644 index 0000000000..df1970bd1f --- /dev/null +++ b/changelogs/fragments/4429-keycloak-client-add-always-display-in-console.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - keycloak_client - add ``always_display_in_console`` parameter (https://github.com/ansible-collections/community.general/issues/4390). diff --git a/plugins/modules/identity/keycloak/keycloak_client.py b/plugins/modules/identity/keycloak/keycloak_client.py index 2069ec7061..88268b3068 100644 --- a/plugins/modules/identity/keycloak/keycloak_client.py +++ b/plugins/modules/identity/keycloak/keycloak_client.py @@ -301,6 +301,15 @@ options: - useTemplateMappers type: bool + always_display_in_console: + description: + - Whether or not to display this client in account console, even if the + user does not have an active session. + aliases: + - alwaysDisplayInConsole + type: bool + version_added: 4.7.0 + surrogate_auth_required: description: - Whether or not surrogate auth is required. @@ -611,6 +620,7 @@ EXAMPLES = ''' use_template_config: False use_template_scope: false use_template_mappers: no + always_display_in_console: true registered_nodes: node01.example.com: 1507828202 registration_access_token: eyJWT_TOKEN @@ -804,6 +814,7 @@ def main(): use_template_config=dict(type='bool', aliases=['useTemplateConfig']), use_template_scope=dict(type='bool', aliases=['useTemplateScope']), use_template_mappers=dict(type='bool', aliases=['useTemplateMappers']), + always_display_in_console=dict(type='bool', aliases=['alwaysDisplayInConsole']), authentication_flow_binding_overrides=dict(type='dict', aliases=['authenticationFlowBindingOverrides']), protocol_mappers=dict(type='list', elements='dict', options=protmapper_spec, aliases=['protocolMappers']), authorization_settings=dict(type='dict', aliases=['authorizationSettings']),