5.21.1 — 2026-10-24¶
← 5.21.2 | 5.21.0 → | ↑ 5.x series
Fixed¶
Adapters - Keycloak¶
- Existing Realm With skip_exists -
create_realmno longer raises aTypeErrorwhen the realm already exists.- python-keycloak raises the
TypeErroritself whenskip_existsis set (python-keycloak issue 730) create_realmnow posts through the admin connection, so an existing realm returnsstatus == "already_exists"andskip_exists=FalseraisesRealmAlreadyExistsError
- python-keycloak raises the
- UMA Permission Checks -
permissions_checkchecks several permissions correctly.- python-keycloak joins them into one comma-separated form field, which Keycloak does not understand (python-keycloak issue 705)
- The adapter sends one
permissionfield each and returnsTrueonly when every requested permission is granted
- Denied UMA Decisions - A UMA request that grants nothing raises
InsufficientPermissionsError, where it used to surface asInternalError.
Tests¶
Tests - Keycloak¶
- Permission Checks and Realm Creation - Added sync and async scenarios for
permissions_checkwith several permissions and for creating an existing realm with and withoutskip_exists.