From c68a0b309f570454423efb9eb6404208e0cae3d9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 6 Sep 2023 22:58:57 +0200 Subject: keep using Bearer prefix --- src/testing/test_merchant_instance_auth.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/testing') 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" ] -- cgit v1.2.3