fix some missed ones

This commit is contained in:
Felix Grzelka
2026-06-08 12:20:32 +00:00
parent 1ec94b961f
commit a1bb84ea5b
3 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ All Keycloak administration modules from `community.general` are provided in thi
* `keycloak_client_rolemapping`: manage client role mappings for users and groups. * `keycloak_client_rolemapping`: manage client role mappings for users and groups.
* `keycloak_client_rolescope`: manage client role scope mappings. * `keycloak_client_rolescope`: manage client role scope mappings.
* `keycloak_client_scope`: manage client scopes and protocol mappers (replaces `community.general.keycloak_clientscope`). * `keycloak_client_scope`: manage client scopes and protocol mappers (replaces `community.general.keycloak_clientscope`).
* `keycloak_client_scopeee_type`: manage default and optional client scope assignments. * `keycloak_client_scope_type`: manage default and optional client scope assignments.
* `keycloak_clientsecret_info`: retrieve client secret information. * `keycloak_clientsecret_info`: retrieve client secret information.
* `keycloak_clientsecret_regenerate`: regenerate a client secret. * `keycloak_clientsecret_regenerate`: regenerate a client secret.
* `keycloak_clienttemplate`: manage legacy client templates. * `keycloak_clienttemplate`: manage legacy client templates.

View File

@@ -1417,7 +1417,7 @@ class KeycloakAPI:
get_client_scope_by_client_scope_id, passing in the ID of the group you wish to return. get_client_scope_by_client_scope_id, passing in the ID of the group you wish to return.
:param cid: id of client scope (not name). :param cid: id of client scope (not name).
:param realm: Realm in which the client_scope resides; default 'master'. :param realm: Realm in which the client scope resides; default 'master'.
:return The protocolmappers of this realm (default "master") :return The protocolmappers of this realm (default "master")
""" """
protocolmappers_url = URL_CLIENT_SCOPE_PROTOCOLMAPPERS.format(id=cid, url=self.baseurl, realm=realm) protocolmappers_url = URL_CLIENT_SCOPE_PROTOCOLMAPPERS.format(id=cid, url=self.baseurl, realm=realm)
@@ -1634,7 +1634,7 @@ class KeycloakAPI:
except Exception as e: except Exception as e:
place = "realm" if client_id is None else f"client {client_id}" place = "realm" if client_id is None else f"client {client_id}"
self.fail_request(e, msg=f"Unable to {action} {scope_type} client_scope {id} @ {place} : {e}") self.fail_request(e, msg=f"Unable to {action} {scope_type} client scope {id} @ {place} : {e}")
def create_clientsecret(self, id, realm: str = "master"): def create_clientsecret(self, id, realm: str = "master"):
"""Generate a new client secret by id """Generate a new client secret by id

View File

@@ -271,7 +271,7 @@ def main():
if module._diff: if module._diff:
result["diff"] = dict(before=normalize_scopes(result["existing"]), after=normalize_scopes(result["proposed"])) result["diff"] = dict(before=normalize_scopes(result["existing"]), after=normalize_scopes(result["proposed"]))
default_client_scopes_add = client_scopes_to_add(default_client_scopees_existing, defaultclient_scopees_real) default_client_scopes_add = client_scopes_to_add(default_client_scopes_existing, default_client_scopes_real)
optional_client_scopes_add = client_scopes_to_add(optional_client_scopes_existing, optional_client_scopes_real) optional_client_scopes_add = client_scopes_to_add(optional_client_scopes_existing, optional_client_scopes_real)
default_client_scopes_delete = client_scopes_to_delete(default_client_scopes_existing, default_client_scopes_real) default_client_scopes_delete = client_scopes_to_delete(default_client_scopes_existing, default_client_scopes_real)