Skip to content

keycloak_client_rolescope: fix for issue #10342 #10343

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

killianlevacher
Copy link

SUMMARY

this is a fix for issue #10342

Changelog Fragment:

This enables the community.general.keycloak_client_rolescope Ansible task to assign roles to client scopes in Keycloak, which currently fails because of a bug described in #10342

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

community.general.keycloak_client_rolescope

ADDITIONAL INFORMATION

Steps to reproduce the bug described in details in #10342

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug identity module module module_utils module_utils new_contributor Help guide this first time contributor plugins plugin (any type) labels Jul 4, 2025
@russoz russoz changed the title fix for issue #10342 keycloak_client_rolescope: fix for issue #10342 Jul 5, 2025
@russoz
Copy link
Collaborator

russoz commented Jul 5, 2025

hi @killianlevacher
Thank you for the contribution! Please add a changelog fragment.

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-10 Automatically create a backport for the stable-10 branch backport-11 Automatically create a backport for the stable-10 branch labels Jul 6, 2025
@desand01
Copy link
Contributor

desand01 commented Jul 6, 2025

Hi @killianlevache, thank you for your contribution.

It seems that the integration tests are currently failing. To help find a solution that addresses your use case without breaking compatibility, would you mind adding an integration test that reproduces the scenario you are trying to support?

This would help me better understand the context.

Thanks again!

general/tests/integration/targets/keycloak_client_rolescope

TASK [keycloak_client_rolescope : Map roles to public client] ******************
fatal: [testhost]: FAILED! => {"changed": false, "msg": "Failed to retrieve client 'myrealm.backend-client-private'"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-10 Automatically create a backport for the stable-10 branch backport-11 Automatically create a backport for the stable-10 branch bug This issue/PR relates to a bug check-before-release PR will be looked at again shortly before release and merged if possible. identity module_utils module_utils module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants