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
parent
commit
54e1ab4d26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      keycloak/keycloak_admin.py

4
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):
"""

Loading…
Cancel
Save