Browse Source
Merge pull request #31 from gt-novelt/user-id-on-creation
return user id on user creation
pull/64/head
Marcos Pereira
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
keycloak/keycloak_admin.py
|
|
@ -308,7 +308,9 @@ class KeycloakAdmin: |
|
|
|
|
|
|
|
data_raw = self.raw_post(URL_ADMIN_USERS.format(**params_path), |
|
|
|
data=json.dumps(payload)) |
|
|
|
return raise_error_from_response(data_raw, KeycloakGetError, expected_code=201) |
|
|
|
raise_error_from_response(data_raw, KeycloakGetError, expected_code=201) |
|
|
|
_last_slash_idx = data_raw.headers['Location'].rindex('/') |
|
|
|
return data_raw.headers['Location'][_last_slash_idx + 1:] |
|
|
|
|
|
|
|
def users_count(self): |
|
|
|
""" |
|
|
|