-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keycloak_client_rolemapping.py: add support for subgroups #6687
keycloak_client_rolemapping.py: add support for subgroups #6687
Conversation
@@ -144,6 +171,24 @@ | |||
id: role_id2 | |||
delegate_to: localhost | |||
|
|||
- name: Map a client role to a subgroup, authentication with token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a copy of YAML above with one additional parents
parameter and slightly changed name
@@ -63,6 +63,33 @@ | |||
- Name of the group to be mapped. | |||
- This parameter is required (can be replaced by gid for less API call). | |||
|
|||
parents: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a copy of a documentation from
parents: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! I've added some first comments.
changelogs/fragments/6687-support-subgroups-for-keycloak-client-rolemapping.yml
Outdated
Show resolved
Hide resolved
…t-rolemapping.yml Add missing URL Co-authored-by: Felix Fontein <felix@fontein.de>
Set a correct version_added (previously it was a copy-paste) Co-authored-by: Felix Fontein <felix@fontein.de>
Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de>
Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de>
Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de>
I appreciate you helping me out :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me (without really knowing keycloak). If nobody objects, I'll merge on Sunday evening.
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6723 🤖 @patchback |
* keycloak_client_rolemapping.py: add support for subgroups * Add PR number after creating a PR to 6687-support-subgroups-for-keycloak-client-rolemapping.yml * Update changelogs/fragments/6687-support-subgroups-for-keycloak-client-rolemapping.yml Add missing URL Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Set a correct version_added (previously it was a copy-paste) Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Mikhail Putilov <Mikhail.Putilov@dimoco.eu> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit e06a0e2)
@mikhail-putilov thanks for your contribution! |
I have to thank you for reviewing it so fast 👍
…On Sun, Jun 18, 2023, 19:51 Felix Fontein ***@***.***> wrote:
@mikhail-putilov <https://github.com/mikhail-putilov> thanks for your
contribution!
—
Reply to this email directly, view it on GitHub
<#6687 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFK2TR4R25MUWG7FADTY7TXL45YJANCNFSM6AAAAAAZGCXWYU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
…: add support for subgroups (#6723) keycloak_client_rolemapping.py: add support for subgroups (#6687) * keycloak_client_rolemapping.py: add support for subgroups * Add PR number after creating a PR to 6687-support-subgroups-for-keycloak-client-rolemapping.yml * Update changelogs/fragments/6687-support-subgroups-for-keycloak-client-rolemapping.yml Add missing URL Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Set a correct version_added (previously it was a copy-paste) Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/keycloak_client_rolemapping.py Fix typo after copy-paste Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Mikhail Putilov <Mikhail.Putilov@dimoco.eu> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit e06a0e2) Co-authored-by: Mikhail Putilov <post.snowy@gmail.com>
SUMMARY
There was a missing
parents
parameter which prevented my ansible scripts from mapping roles to subgroupsThe fix was easy, as everything was already implemented and only missing
parents
parameter needed to be added.ISSUE TYPE
COMPONENT NAME
keycloak_client_rolemapping
ADDITIONAL INFORMATION
I needed to map a role to a subgroup but I could not because there was a missing parameter
parents
in the python script. Adding it solved the issue.