libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 130edc1fd917f51631d5414de16e78a943015fce
parent 3b573ab44312157c9a6022c8165f1222e0169979
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
Date:   Wed, 26 Jan 2022 03:50:00 -0500

add HTTP Basic auth to ‘sandbox bankaccount simulate-incoming-transaction’

Diffstat:
Mcli/bin/libeufin-cli | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli @@ -1403,7 +1403,11 @@ def simulate_incoming_transaction( subject=subject, ) try: - resp = post(url, json=body) + resp = post( + url, + json=body, + auth=auth.HTTPBasicAuth(obj.nexus_username, obj.nexus_password) + ) except Exception as e: print(e) print("Could not reach sandbox")