Skip to content

Commit

Permalink
Fix sanitize for keycloak_identitiy_provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed May 14, 2024
1 parent 7dd7cbd commit 0212226
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/8355-keycloak-idp-sanitize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- keycloak_identity_provider - fix sanitization of client secret (https://github.com/ansible-collections/community.general/pull/8355).
2 changes: 1 addition & 1 deletion plugins/modules/keycloak_identity_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def sanitize(idp):
idpcopy = deepcopy(idp)
if 'config' in idpcopy:
if 'clientSecret' in idpcopy['config']:
idpcopy['clientSecret'] = '**********'
idpcopy['config']['clientSecret'] = '**********'
return idpcopy


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
- result.existing == {}
- result.end_state.alias == "{{ idp }}"
- result.end_state.mappers != []
- result.end_state.config.client_secret = "**********"

- name: Update existing identity provider (no change)
community.general.keycloak_identity_provider:
Expand Down

0 comments on commit 0212226

Please sign in to comment.