From 5fbefac4eeb28f1de4756733cb5e88fb7e5f5be6 Mon Sep 17 00:00:00 2001 From: Matej Dujava Date: Thu, 5 Jun 2025 17:17:30 +0200 Subject: [PATCH] chore: add correct return type to get_client_secrets and a_get_client_secrets (#655) Verified with RHBKv24 and RHBKv26 Fixes: #643 --- src/keycloak/keycloak_admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index acce1e7..42fb668 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -5197,7 +5197,7 @@ class KeycloakAdmin: ) return raise_error_from_response(data_raw, KeycloakPostError) - def get_client_secrets(self, client_id: str) -> list: + def get_client_secrets(self, client_id: str) -> dict: """ Get representation of the client secrets. @@ -5206,7 +5206,7 @@ class KeycloakAdmin: :param client_id: id of client (not client-id) :type client_id: str :return: Keycloak server response (ClientRepresentation) - :rtype: list + :rtype: dict """ params_path = {"realm-name": self.connection.realm_name, "id": client_id} data_raw = self.connection.raw_get( @@ -10418,7 +10418,7 @@ class KeycloakAdmin: ) return raise_error_from_response(data_raw, KeycloakPostError) - async def a_get_client_secrets(self, client_id: str) -> list: + async def a_get_client_secrets(self, client_id: str) -> dict: """ Get representation of the client secrets asynchronously. @@ -10427,7 +10427,7 @@ class KeycloakAdmin: :param client_id: id of client (not client-id) :type client_id: str :return: Keycloak server response (ClientRepresentation) - :rtype: list + :rtype: dict """ params_path = {"realm-name": self.connection.realm_name, "id": client_id} data_raw = await self.connection.a_raw_get(