Harsha Cherukuri and GitHub
39721dff35
Merge pull request #436 from cihlamar/AMW-649
...
Add missing protocolMappers alias to keycloak_client_scope mo…
2026-10-09 10:39:29 -04:00
Martin Cihlar
3218326ac3
AMW-649 Add missing protocolMappers alias to keycloak_client_scope module
...
The keycloak_client module accepts protocolMappers as an alias for
protocol_mappers, but keycloak_client_scope was missing it.
Fixes #435
2026-10-09 10:53:47 +02:00
Martin Cihlar
c51f290d64
AMW-616 Port 24 community.general keycloak integration tests to molecule
...
Port integration tests from community.general keycloak modules into
the keycloak collection molecule test framework (keycloak_modules
scenario), adapting for KC 26.x behavioral changes and middleware
module differences.
Ported modules: keycloak_authentication, keycloak_authz_authorization_scope,
keycloak_authz_permission, keycloak_client, keycloak_client_rolescope,
keycloak_client_scope_rolemappings, keycloak_client_scope_type,
keycloak_clientsecret_info, keycloak_clientsecret_regenerate,
keycloak_component_info, keycloak_group, keycloak_group_rolemapping,
keycloak_identity_provider, keycloak_modules_authentication,
keycloak_realm, keycloak_realm_key, keycloak_realm_users_info,
keycloak_role, keycloak_user, keycloak_user_federation,
keycloak_user_rolemapping, keycloak_userprofile.
KC 26.x adaptations:
- serviceAccountsEnabled defaults to true on new clients
- Default Policy/Resource no longer auto-created for authz clients
- Built-in admin role rejects PUT updates (403)
- Invalid credentials return HTTP 400 instead of 401
- LDAP federation no longer auto-creates mappers
Other fixes:
- Variable collision avoidance (role/group/client register overwriting
play-level vars via include_vars)
- Ansible 2.19+ native Jinja dict handling (endpoint combine filter)
- Jinja embedded template warnings in assert expressions
- Auth fallback prevention in invalid-token tests
2026-10-08 20:48:09 +02:00
Ranabir Chakraborty
ed99d28b5d
AMW-644 keycloak_user_federation module always reports task as changed in check mode
2026-10-05 19:40:06 +05:30
Ranabir Chakraborty
bd2c01a588
AMW-642 keycloak_identity_provider: add support for Do not store users from transient-users feature
2026-10-01 00:55:27 +05:30
nwintering
7d9e99b370
add missing dot to docu
2026-09-14 16:57:38 +02:00
nwintering
2bb6946fb9
Add support for description attribute
2026-09-14 14:44:35 +02:00
Ranabir Chakraborty and GitHub
e103524781
Merge pull request #384 from NilsBergmann/feature/authv2-formaction
...
authentication_v2: Fix validation for FormActions
2026-09-11 20:00:09 +05:30
Harsha Cherukuri
0716f622ad
Fix #396 keycloak_user_federation.py mapper sorting now happens after unspecified mappers are merged in
2026-09-10 09:03:29 -04:00
Nils Bergmann
638f694120
authentication_v2: Fix validation for form-flows and client-flows
2026-09-09 10:36:56 +02:00
Ranabir Chakraborty
86bd6c77d6
AMW-626 keycloak_user_rolemapping raises 403 error code while listing asignable Roles if invoker lacks view-realm Role
2026-09-09 13:24:37 +05:30
Ranabir Chakraborty and GitHub
6644207e5d
Merge pull request #407 from Yabk/bugfix/keycloak_group_parents
...
keycloak_group: fix subgroup lookup on Keycloak older than 25
2026-09-09 12:40:51 +05:30
Martin Cihlar
d6ceb63914
AMW-625 add use_netrc option to prevent .netrc overriding bearer token auth
...
When ~/.netrc contains an entry matching the Keycloak host, open_url()
silently replaces the OIDC Bearer header with Basic auth, causing 401
errors. Add use_netrc option (default false) to all keycloak modules
and pass it through to both open_url() call sites.
Includes molecule test scenario (netrc) that verifies both behaviors:
- default use_netrc=false ignores .netrc (fix works)
- use_netrc=true picks up .netrc and gets 401 (proves the bug)
Fixes: https://github.com/ansible-middleware/keycloak/issues/403
2026-09-07 09:09:39 +02:00
Yabk
529b667321
keycloak_group: fix subgroup lookup on Keycloak older than 25
...
The parents branch of get_group_by_name() queried
GET /admin/realms/{realm}/groups/{id}/children?search=&exact=true
unconditionally. That endpoint only accepts GET from Keycloak 23 on, so
older servers (RH-SSO 7.x included) failed with 405 Method Not Allowed,
and 23/24 ignore search/exact and return only the first 10 children, so
subgroups past the tenth were silently reported as absent.
The lookup now goes through get_subgroups(), which already detects the
server generation, and that helper takes an optional search argument so
the search optimization is kept where the server supports it.
2026-09-04 12:56:23 +02:00
Ranabir Chakraborty and GitHub
afc12b6ae2
Merge pull request #405 from hcherukuri/main
...
Fix issue #397 #398 crash on first role assignment
2026-09-03 22:34:37 +05:30
Harsha Cherukuri
2ffe3a8f7b
Fix keycloak_user_federation for issue #398
2026-09-03 10:02:35 -04:00
Harsha Cherukuri and GitHub
6814939116
Merge pull request #402 from stblassitude/fix/keycloak_authentication_v2-subflow-keyerror
...
In a flow definition, handle non-existing keys correctly
2026-09-03 09:47:01 -04:00
Harsha Cherukuri
24350903ed
Fix issue #397 crash on first role assignment
2026-09-03 09:43:17 -04:00
Harsha Cherukuri
79852e61fc
Address issue #370 , add keycloak_realm: max_secondary_auth_failures parameter
2026-09-03 08:23:38 -04:00
Stefan Bethke
8007d8039a
Handle non-existing keys correctly
...
See issue #401 for details.
2026-09-02 10:35:01 +02:00
Ranabir Chakraborty and GitHub
85d494731a
Merge pull request #399 from santanoce/bugfix/keycloak_user
...
keycloak_user: fix attributes always reporting changed=True
2026-09-01 18:43:41 +05:30
Ranabir Chakraborty
e9f74fa4a9
AMW-615 Inconsistent support of authentication via client credentials
2026-08-31 23:40:02 +05:30
santanoce
23d96186f5
keycloak_user: fix attributes always reporting changed=True
2026-08-30 12:44:17 +02:00
Harsha Cherukuri and GitHub
9c347d1bf0
Merge pull request #376 from RISE-GmbH/375-increase_number_of_subflow_levels
...
375 increase maximum of sub levels to 25
2026-08-14 11:28:40 -04:00
Chris Brown and Claude Opus 4.6
c8253fdbf8
Add keycloak_organization and keycloak_organization_info modules
...
Keycloak 26 introduced Organizations as a stable feature for B2B
multi-tenancy within a single realm. This adds declarative Ansible
module support so organizations can be managed like other Keycloak
resources instead of requiring direct REST API calls.
New modules:
- keycloak_organization: CRUD for organizations with full check_mode,
diff_mode, and idempotency support. Manages name, alias, description,
enabled state, domains, and attributes.
- keycloak_organization_info: read-only module to list/search
organizations by name with exact or partial matching.
Also adds 6 API methods to the KeycloakAPI class and comprehensive
Molecule integration tests covering create, idempotency, update,
info queries, attributes, and delete flows.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-08-07 07:26:58 +01:00
Thomas Bargetz
9abf2e832b
375 increase maximum of sub levels to 10
2026-07-30 12:56:51 +02:00
Harsha Cherukuri and GitHub
866c5e2255
Merge pull request #371 from RISE-GmbH/368-avoid_pruning_of_undefined_realm_attributes
...
368 keycloak_realm: Control whether undefined realm attributes are pruned
2026-07-28 09:10:49 -04:00
9bb680b8e6
Update plugins/modules/keycloak_realm_users_info.py
...
Co-authored-by: Felix Fontein <felix@fontein.de >
2026-07-26 21:02:08 -04:00
Thomas Bargetz
1f0a7c289f
368 introduce the parameter prune_undefined_realm_attributes to control whether undefined realm attributes are pruned
2026-07-24 10:20:17 +02:00
Harsha Cherukuri
ff51c4098a
Add community.general.keycloak_realm_users_info into keycloak collection
2026-07-23 22:31:32 -04:00
Harsha Cherukuri
e4c3ec8046
Removing from __future__ import annotations broke runtime type hints using Sequence and union syntax, causing sanity import failures and molecule module errors.
2026-06-24 23:19:59 -04:00
Harsha Cherukuri
82022b9031
Replace from __future__ import annotations with the required future-import.
2026-06-24 23:19:59 -04:00
Ranabir Chakraborty
eaeedd8d74
AMW-571 keycloak_identity_provider hide_on_login_page not working
2026-06-23 22:43:37 +05:30
Harsha Cherukuri
c8bcff39ef
Fix keycloak client module
2026-06-10 08:22:52 -04:00
Felix Grzelka
0fad56294b
fix typo
2026-06-10 11:14:23 +00:00
Felix Grzelka
942f0ae896
fix rename payload -> roles
2026-06-09 07:14:32 +00:00
Felix Grzelka
92d6dddd49
rename to role_owner_client_id
2026-06-08 13:21:27 +00:00
Felix Grzelka
a1bb84ea5b
fix some missed ones
2026-06-08 12:20:32 +00:00
Felix Grzelka
1ec94b961f
rename files to match new convention
2026-06-08 12:00:52 +00:00
Felix Grzelka
ba3f716e5c
fix scope_id etc.
2026-06-08 12:00:52 +00:00
Felix Grzelka
808d137e4c
s/clientscope/client_scope/
2026-06-08 12:00:52 +00:00
Felix Grzelka
e898a2511a
rm other use of normalize_keycloak_url
2026-06-05 07:29:53 +00:00
Felix Grzelka
dd2cfaa87d
remove normalize_keycloak_url
2026-06-04 13:20:03 +00:00
Harsha Cherukuri
123906d739
Added PRs #11841 and #11749 , and updated version references from community.general to Keycloak.
2026-05-30 09:29:04 -04:00
Harsha Cherukuri
bdc090de64
Move community.general keycloak modules into keycloak collection
2026-05-28 13:14:54 -04:00
Harsha Cherukuri
22f1ce516d
Fix sanity and molecule tests
2026-04-24 10:07:24 -04:00
pamenon
c6189bfc51
Add keycloak_client_scope and keycloak_authentication_flow modules with example playbooks
...
The collection was missing modules for managing client scopes and
authentication flows, forcing users to write raw uri calls against
the Keycloak Admin REST API. This adds two new modules that leverage
the existing KeycloakAPI helper methods:
- keycloak_client_scope: create/update/delete client scopes with
protocol mappers (supports check_mode and diff)
- keycloak_authentication_flow: create/delete authentication flows
with execution steps, or copy existing flows (supports check_mode
and diff)
Also adds three example playbooks using the new modules:
- keycloak_client_scope.yml
- keycloak_authentication_flow.yml
- keycloak_realm_client.yml
Made-with: Cursor
2026-04-23 12:53:03 +01:00
Guido Grazioli
be19ec1289
update tests
2024-10-14 14:36:58 +02:00
Guido Grazioli
c6bb815979
update keycloak modules
2024-10-14 10:22:10 +02:00
Guido Grazioli
50d189ee14
ci: more linter fixes
2024-04-17 16:56:56 +02:00