Skip to content

Commit 5fbefac

Browse files
authored
chore: add correct return type to get_client_secrets and a_get_client_secrets (#655)
Verified with RHBKv24 and RHBKv26 Fixes: #643
1 parent 5d42c34 commit 5fbefac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/keycloak/keycloak_admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5197,7 +5197,7 @@ def generate_client_secrets(self, client_id: str) -> bytes:
51975197
)
51985198
return raise_error_from_response(data_raw, KeycloakPostError)
51995199

5200-
def get_client_secrets(self, client_id: str) -> list:
5200+
def get_client_secrets(self, client_id: str) -> dict:
52015201
"""
52025202
Get representation of the client secrets.
52035203
@@ -5206,7 +5206,7 @@ def get_client_secrets(self, client_id: str) -> list:
52065206
:param client_id: id of client (not client-id)
52075207
:type client_id: str
52085208
:return: Keycloak server response (ClientRepresentation)
5209-
:rtype: list
5209+
:rtype: dict
52105210
"""
52115211
params_path = {"realm-name": self.connection.realm_name, "id": client_id}
52125212
data_raw = self.connection.raw_get(
@@ -10418,7 +10418,7 @@ async def a_generate_client_secrets(self, client_id: str) -> bytes:
1041810418
)
1041910419
return raise_error_from_response(data_raw, KeycloakPostError)
1042010420

10421-
async def a_get_client_secrets(self, client_id: str) -> list:
10421+
async def a_get_client_secrets(self, client_id: str) -> dict:
1042210422
"""
1042310423
Get representation of the client secrets asynchronously.
1042410424
@@ -10427,7 +10427,7 @@ async def a_get_client_secrets(self, client_id: str) -> list:
1042710427
:param client_id: id of client (not client-id)
1042810428
:type client_id: str
1042910429
:return: Keycloak server response (ClientRepresentation)
10430-
:rtype: list
10430+
:rtype: dict
1043110431
"""
1043210432
params_path = {"realm-name": self.connection.realm_name, "id": client_id}
1043310433
data_raw = await self.connection.a_raw_get(

0 commit comments

Comments
 (0)