diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-09-06 22:58:57 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-09-06 22:58:57 +0200 |
commit | c68a0b309f570454423efb9eb6404208e0cae3d9 (patch) | |
tree | 52388e31f5aefd43b7c7360524d9ee874f6d8cf9 /src/testing | |
parent | 78a0c837355f97df7331212e4faf71eed81c05ca (diff) |
keep using Bearer prefix
Diffstat (limited to 'src/testing')
-rwxr-xr-x | src/testing/test_merchant_instance_auth.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testing/test_merchant_instance_auth.sh b/src/testing/test_merchant_instance_auth.sh index d1315b73..58cee79d 100755 --- a/src/testing/test_merchant_instance_auth.sh +++ b/src/testing/test_merchant_instance_auth.sh @@ -175,7 +175,7 @@ echo " OK" >&2 echo -n "Using login token..." >&2 STATUS=$(curl "http://localhost:9966/instances/second/private/orders" \ - -H 'Authorization: '"$TOKEN" \ + -H 'Authorization: Bearer '"$TOKEN" \ -w "%{http_code}" -s -o "$LAST_RESPONSE") if [ "$STATUS" != "200" ] @@ -189,7 +189,7 @@ echo " OK" >&2 echo -n "Refreshing login token..." >&2 STATUS=$(curl -H "Content-Type: application/json" -X POST \ - -H 'Authorization: '"$TOKEN" \ + -H 'Authorization: Bearer '"$TOKEN" \ http://localhost:9966/instances/second/private/token \ -d '{"scope":"write","refreshable":true}' \ -w "%{http_code}" -s -o "$LAST_RESPONSE") @@ -206,7 +206,7 @@ echo " OK" >&2 echo -n "Deleting login token..." >&2 STATUS=$(curl -H "Content-Type: application/json" -X DELETE \ - -H 'Authorization: '"$TOKEN" \ + -H 'Authorization: Bearer '"$TOKEN" \ http://localhost:9966/instances/second/private/token \ -w "%{http_code}" -s -o "$LAST_RESPONSE") @@ -220,7 +220,7 @@ echo " OK" >&2 echo -n "Using deleted login token..." >&2 STATUS=$(curl "http://localhost:9966/instances/second/private/orders" \ - -H 'Authorization: '"$TOKEN" \ + -H 'Authorization: Bearer '"$TOKEN" \ -w "%{http_code}" -s -o "$LAST_RESPONSE") if [ "$STATUS" != "401" ] |