Browse Source

Merged in bugfix/get_user_id (pull request #14)

Fixed feature get user id.

Approved-by: Marcos Pereira <marcospereira.mpj@gmail.com>
pull/12/head
Marcos Pereira 6 years ago
parent
commit
742968ba73
  1. 4
      keycloak/keycloak_admin.py

4
keycloak/keycloak_admin.py

@ -181,8 +181,8 @@ class KeycloakAdmin:
:return: user_id
"""
params_path = {"realm-name": self.realm_name, "username": username}
data_raw = self.connection.raw_get(URL_ADMIN_USERS.format(**params_path))
data_raw = self.get_users(query={"username": username})
data_content = raise_error_from_response(data_raw, KeycloakGetError)
for user in data_content:

Loading…
Cancel
Save