Skip to content

Commit

Permalink
Merge pull request #24 from vnsamsonov/main
Browse files Browse the repository at this point in the history
Fix getting client secret from KK
  • Loading branch information
vnsamsonov authored Jul 11, 2023
2 parents ab8ba61 + b4854c1 commit 118cc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s-itlabs-operator/clients/keycloak/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ def generate_secret(self, client_id: str) -> str:
if response.status_code != http.client.OK:
error = ErrorDtoFactory.dto_from_dict(response.json())
raise InfrastructureServiceProblem("Keycloak", KeycloakError(error))
return response.json().get("secret")
return response.json().get("value")
except Exception as e:
raise InfrastructureServiceProblem("Keycloak", e)

0 comments on commit 118cc7a

Please sign in to comment.