Skip to content

Commit

Permalink
need to decipher result for get_service_store_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Sep 11, 2024
1 parent ebd9ce0 commit 3438901
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,13 @@ def get_access_token(
):

if client_id is None:
client_id = get_service_store_secret("keycloak", "client-id")
response = get_service_store_secret("keycloak", "client-id")
if response[1] == 200:
client_id = response[0]["value"]
if client_secret is None:
client_secret = get_service_store_secret("keycloak", "client-secret")
response = get_service_store_secret("keycloak", "client-secret")
if response[1] == 200:
client_secret = response[0]["value"]

result = get_oauth_response(
keycloak_url=keycloak_url,
Expand Down

0 comments on commit 3438901

Please sign in to comment.