1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/identity/keycloak
patchback[bot] 7111edd631
[PR #5619/f0b3bba0 backport][stable-5] Fix keycloak_client_rolemapping role removal and diff (#5655)
Fix keycloak_client_rolemapping role removal and diff (#5619)

* Keycloak: Fix client rolemapping removal

Keycloak's delete_group_rolemapping API wrapper didn't pass data about
the roles to remove to keycloak, resulting in removal of all roles.

Follow the intended behaviour and delete only the roles listed in the
module invocation.

Signed-off-by: Florian Achleitner <flo@fopen.at>

* Keycloak: Fix client_rolemapping diff

The module's diff output wrongly showed the changed roles list as
'after' state. This is obviously wrong for role removal and also
wrong for role addition, if there are other roles assigned.

Use the result of the API query for 'end_state' for 'diff' as well.

Signed-off-by: Florian Achleitner <flo@fopen.at>

* Keycloak: Calculate client_rolemapping proposed state properly

Signed-off-by: Florian Achleitner <flo@fopen.at>

* Add changelog fragment

Signed-off-by: Florian Achleitner <flo@fopen.at>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>

* Fix for python2 unit test

Signed-off-by: Florian Achleitner <flo@fopen.at>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit f0b3bba030)

Co-authored-by: fachleitner <flo@fopen.at>
2022-12-05 05:47:14 +00:00
..
keycloak_authentication.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) (#5068) 2022-08-05 13:17:19 +02:00
keycloak_client.py Normalize more booleans. (#5247) (#5250) 2022-09-06 21:07:46 +02:00
keycloak_client_rolemapping.py [PR #5619/f0b3bba0 backport][stable-5] Fix keycloak_client_rolemapping role removal and diff (#5655) 2022-12-05 05:47:14 +00:00
keycloak_clientscope.py Normalize more booleans. (#5247) (#5250) 2022-09-06 21:07:46 +02:00
keycloak_clienttemplate.py Normalize more booleans. (#5247) (#5250) 2022-09-06 21:07:46 +02:00
keycloak_group.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) (#5068) 2022-08-05 13:17:19 +02:00
keycloak_identity_provider.py Fix more copyright lines, add more default copyright lines (#5095) (#5096) 2022-08-08 15:19:46 +02:00
keycloak_realm.py [PR #5639/da7cba4c backport][stable-5] Fix example in keycloak_realm documentation (#5642) 2022-12-01 22:48:50 +01:00
keycloak_realm_info.py Adjust booleans in misc modules. (#5160) (#5174) 2022-08-24 20:29:08 +02:00
keycloak_role.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) (#5068) 2022-08-05 13:17:19 +02:00
keycloak_user_federation.py keycloak_user_federation: add explanation and example to vendor option (#4893) (#5336) 2022-10-05 08:19:17 +02:00
keycloak_user_rolemapping.py New Module: Keycloak User Rolemapping (#4898) (#5324) 2022-10-01 21:53:54 +02:00