Browse Source

chore: add correct return type to get_credentials and a_get_credentials (#640)

master
Liam Beckingham 1 week ago
committed by GitHub
parent
commit
f9138d11c1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      src/keycloak/keycloak_admin.py

8
src/keycloak/keycloak_admin.py

@ -870,7 +870,7 @@ class KeycloakAdmin:
expected_codes=[HTTP_NO_CONTENT],
)
def get_credentials(self, user_id: str) -> dict:
def get_credentials(self, user_id: str) -> list:
"""
Get user credentials.
@ -882,7 +882,7 @@ class KeycloakAdmin:
:param: user_id: user id
:type user_id: str
:returns: Keycloak server response (CredentialRepresentation)
:rtype: dict
:rtype: list
"""
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
data_raw = self.connection.raw_get(
@ -6104,7 +6104,7 @@ class KeycloakAdmin:
expected_codes=[HTTP_NO_CONTENT],
)
async def a_get_credentials(self, user_id: str) -> dict:
async def a_get_credentials(self, user_id: str) -> list:
"""
Get user credentials asynchronously.
@ -6116,7 +6116,7 @@ class KeycloakAdmin:
:param: user_id: user id
:type user_id: str
:returns: Keycloak server response (CredentialRepresentation)
:rtype: dict
:rtype: list
"""
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
data_raw = await self.connection.a_raw_get(

Loading…
Cancel
Save