1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-21 20:59:10 +00:00
community.general/plugins
Ivan Kokalovic c41de53dbb
keycloak: URL-encode query parameters for usernames with special characters (#11472)
* fix(keycloak): URL-encode query params for usernames with special chars

get_user_by_username() concatenates the username directly into the URL
query string. When the username contains a +, it is interpreted as a
space by the server, returning no match and causing a TypeError.

Use urllib.parse.quote() (already imported) for the username parameter.
Also replace three fragile .replace(' ', '%20') calls in the authz
search methods with proper quote() calls.

Fixes #10305

* Update changelogs/fragments/keycloak-url-encode-query-params.yml

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-02-06 07:10:55 +01:00
..
action Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
become Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
connection Add option for wsl_shell_type, protect wsl.exe arguments if SSH shell is Powershell (#11308) 2026-01-16 21:07:11 +01:00
doc_fragments Adding scw_profile parameter to Scaleway module utilities. (#11314) 2025-12-28 21:03:55 +01:00
filter Cleanup (#11445) 2026-01-25 18:43:29 +01:00
inventory Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
lookup Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
module_utils keycloak: URL-encode query parameters for usernames with special characters (#11472) 2026-02-06 07:10:55 +01:00
modules keycloak_client: remove id's as change from diff for protocol mappers (#11454) 2026-02-05 17:20:51 +01:00
plugin_utils Add to_toml filter (#11423) 2026-01-22 06:41:49 +01:00
test Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00