From 9fbf1a08ee0a1b3718a192ae98658859504b436b Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 10 May 2024 11:31:24 +0200 Subject: [PATCH] Attempt to fix credentials not being set in gui --- gui/src/gui/login.py | 4 ++-- gui/src/services/goldwarden.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/src/gui/login.py b/gui/src/gui/login.py index 0a8179b..7953bbd 100644 --- a/gui/src/gui/login.py +++ b/gui/src/gui/login.py @@ -52,9 +52,9 @@ class GoldwardenLoginApp(Adw.Application): server = self.server_row.get_text() goldwarden.set_url(server) if client_id != "": - goldwarden.set_client_id(client_id) + print("set client id result", goldwarden.set_client_id(client_id.strip())) if client_secret != "": - goldwarden.set_client_secret(client_secret) + print("set client secret result", goldwarden.set_client_secret(client_secret.strip())) goldwarden.login_with_password(email, "") self.window.close() diff --git a/gui/src/services/goldwarden.py b/gui/src/services/goldwarden.py index d691c17..7239012 100644 --- a/gui/src/services/goldwarden.py +++ b/gui/src/services/goldwarden.py @@ -81,10 +81,10 @@ def get_environment(): return None def set_client_id(client_id): - send_authenticated_command(f"config set-client-id \"{client_id}\"") + return send_authenticated_command(f"config set-client-id {client_id}") def set_client_secret(client_secret): - send_authenticated_command(f"config set-client-secret \"{client_secret}\"") + return send_authenticated_command(f"config set-client-secret {client_secret}") def login_with_password(email, password): result = send_authenticated_command(f"vault login --email {email}")