mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-27 11:02:46 +03:00
Merge pull request #212 from quexten/fix/client-credentials
Attempt to fix credentials not being set in gui
This commit is contained in:
commit
08f419ac36
@ -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()
|
||||
|
||||
|
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user