From 7b35dd3b05119f0aa588558be23e5ce628ae169f Mon Sep 17 00:00:00 2001 From: Daniel Pimenta Date: Thu, 21 Dec 2023 16:25:18 +0000 Subject: [PATCH] Fix bug --- identityutils/keycloak_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/identityutils/keycloak_client.py b/identityutils/keycloak_client.py index ebd1be0..865d96d 100644 --- a/identityutils/keycloak_client.py +++ b/identityutils/keycloak_client.py @@ -552,8 +552,8 @@ def create_client(self, payload, skip_exists=True): def create_group(self, id, name, skip_exists=True): payload = { - id: id, - name: name + "id": id, + "name": name } return self.keycloak_admin.create_group(payload=payload, skip_exists=skip_exists) @@ -620,4 +620,4 @@ def get_rpt(self, client_id, client_secret, uri, token, ticket): connection.add_param_headers("Content-Type", "application/x-www-form-urlencoded") connection.add_param_headers("Authorization", "Bearer " + token) data = connection.raw_post(urls_patterns.URL_TOKEN.format(**params_path), data=payload) - return raise_error_from_response(data, KeycloakPostError) + return raise_error_from_response(data, KeycloakPostError) \ No newline at end of file