mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-11 10:35:34 +00:00
clean some things up
This commit is contained in:
parent
efad552887
commit
0cf612e0ce
3 changed files with 3 additions and 32 deletions
|
|
@ -1103,7 +1103,7 @@ class KeycloakAPI:
|
|||
|
||||
def get_user_by_username(self, username: str, realm: str = "master") -> dict[str, t.Any] | None:
|
||||
"""Fetch a keycloak user within a realm based on its username.
|
||||
|
||||
|
||||
If the username is not found, None is returned.
|
||||
:param username: Username of the user to fetch.
|
||||
:param realm: Realm in which the user resides; default 'master'"""
|
||||
|
|
@ -1123,7 +1123,6 @@ class KeycloakAPI:
|
|||
except Exception as e:
|
||||
self.fail_request(e, msg=f"Could not obtain the user for realm {realm} and username {username}: {e}")
|
||||
|
||||
|
||||
def get_service_account_user_by_client_id(self, client_id, realm: str = "master"):
|
||||
"""Fetch a keycloak service account user within a realm based on its client_id.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue