gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: add HTTP Basic auth to several ‘sandbo


From: gnunet
Subject: [libeufin] branch master updated: add HTTP Basic auth to several ‘sandbox’ subcommands
Date: Fri, 21 Jan 2022 11:28:21 +0100

This is an automated email from the git hooks/post-receive script.

ttn pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 597f1946 add HTTP Basic auth to several ‘sandbox’ subcommands
597f1946 is described below

commit 597f1946b0d140e13e8fb67025f529bd9be36c24
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
AuthorDate: Fri Jan 21 05:27:53 2022 -0500

    add HTTP Basic auth to several ‘sandbox’ subcommands
    
    The following commands are affected:
    - sandbox ebicshost list
    - sandbox ebicssubscriber list
    - sandbox bankaccount list
    - sandbox bankaccount transactions
---
 cli/bin/libeufin-cli | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli
index e02461eb..f9a95f5b 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli
@@ -1069,7 +1069,7 @@ def list_ebics_host(obj):
     sandbox_base_url = obj.require_sandbox_base_url()
     url = urljoin_nodrop(sandbox_base_url, "/admin/ebics/hosts")
     try:
-        resp = get(url)
+        resp = get(url,auth=auth.HTTPBasicAuth(obj.username, obj.password))
     except Exception as e:
         print(e)
         print("Could not reach sandbox")
@@ -1114,7 +1114,7 @@ def list_ebics_subscriber(obj):
     sandbox_base_url = obj.require_sandbox_base_url()
     url = urljoin_nodrop(sandbox_base_url, "/admin/ebics/subscribers")
     try:
-        resp = get(url)
+        resp = get(url,auth=auth.HTTPBasicAuth(obj.username, obj.password))
     except Exception as e:
         print(e)
         print("Could not reach sandbox")
@@ -1319,7 +1319,7 @@ def bankaccount_list(obj):
     sandbox_base_url = obj.require_sandbox_base_url()
     url = urljoin_nodrop(sandbox_base_url, f"/admin/bank-accounts")
     try:
-        resp = get(url)
+        resp = get(url,auth=auth.HTTPBasicAuth(obj.username, obj.password))
     except Exception as e:
         print(e)
         print("Could not reach sandbox")
@@ -1338,7 +1338,7 @@ def transactions_list(obj, account_label):
         sandbox_base_url, f"/admin/bank-accounts/{account_label}/transactions"
     )
     try:
-        resp = get(url)
+        resp = get(url,auth=auth.HTTPBasicAuth(obj.username, obj.password))
     except Exception as e:
         print(e)
         print("Could not reach sandbox")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]