Richard Nemeth
3 years ago
No known key found for this signature in database
GPG Key ID: 21C39470DF3DEC39
2 changed files with
3 additions and
1 deletions
-
src/keycloak/keycloak_admin.py
-
src/keycloak/urls_patterns.py
|
|
@ -2551,6 +2551,7 @@ class KeycloakAdmin: |
|
|
|
|
|
|
|
:return: events list |
|
|
|
""" |
|
|
|
query = query or dict() |
|
|
|
params_path = {"realm-name": self.realm_name} |
|
|
|
data_raw = self.raw_get( |
|
|
|
urls_patterns.URL_ADMIN_EVENTS.format(**params_path), data=None, **query |
|
|
@ -2568,7 +2569,7 @@ class KeycloakAdmin: |
|
|
|
""" |
|
|
|
params_path = {"realm-name": self.realm_name} |
|
|
|
data_raw = self.raw_put( |
|
|
|
urls_patterns.URL_ADMIN_EVENTS.format(**params_path), data=json.dumps(payload) |
|
|
|
urls_patterns.URL_ADMIN_EVENTS_CONFIG.format(**params_path), data=json.dumps(payload) |
|
|
|
) |
|
|
|
return raise_error_from_response(data_raw, KeycloakPutError, expected_codes=[204]) |
|
|
|
|
|
|
|
|
|
@ -166,4 +166,5 @@ URL_ADMIN_USER_FEDERATED_IDENTITY = ( |
|
|
|
) |
|
|
|
|
|
|
|
URL_ADMIN_EVENTS = "admin/realms/{realm-name}/events" |
|
|
|
URL_ADMIN_EVENTS_CONFIG = URL_ADMIN_EVENTS + "/config" |
|
|
|
URL_ADMIN_CLIENT_SESSION_STATS = "admin/realms/{realm-name}/client-session-stats" |