aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-07-17 18:54:08 +0200
committerMS <ms@taler.net>2020-07-17 18:54:08 +0200
commit98f972c0682efaa281cafa8c32a81e5ccf1c3b3a (patch)
tree70a92c862d77f77010d0f382fdbad428fb91d1fa /bin
parent1cec131bfb5d2164b15bfdf041f892ee41615aa5 (diff)
downloaddeployment-98f972c0682efaa281cafa8c32a81e5ccf1c3b3a.tar.gz
deployment-98f972c0682efaa281cafa8c32a81e5ccf1c3b3a.tar.bz2
deployment-98f972c0682efaa281cafa8c32a81e5ccf1c3b3a.zip
fix auth
Diffstat (limited to 'bin')
-rwxr-xr-xbin/taler-config-instances5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/taler-config-instances b/bin/taler-config-instances
index c6c9afe..608e00d 100755
--- a/bin/taler-config-instances
+++ b/bin/taler-config-instances
@@ -1,7 +1,6 @@
#!/usr/bin/env python3
from requests import post
-from requests.auth import HTTPBasicAuth
from os import environ
from sys import exit
@@ -37,7 +36,7 @@ blog_config = dict(
)
expectResponse(
- post(INSTANCE_CONFIG_URL, json=blog_config, auth=HTTPBasicAuth("ApiKey", "sandbox")),
+ post(INSTANCE_CONFIG_URL, json=blog_config, headers={"Authorization": "ApiKey sandbox"}),
204
)
@@ -58,7 +57,7 @@ donations_config = dict(
)
expectResponse(
- post(INSTANCE_CONFIG_URL, json=donations_config),
+ post(INSTANCE_CONFIG_URL, json=donations_config, headers={"Authorization": "ApiKey sandbox"}),
204
)