From 9faea2c1f75361375dd7788ebca49081efac4e96 Mon Sep 17 00:00:00 2001 From: burnettk Date: Mon, 6 Feb 2023 17:55:07 -0500 Subject: [PATCH] update get_token --- spiffworkflow-backend/bin/get_token | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/bin/get_token b/spiffworkflow-backend/bin/get_token index 4e6aca021..dc26e7696 100755 --- a/spiffworkflow-backend/bin/get_token +++ b/spiffworkflow-backend/bin/get_token @@ -22,8 +22,8 @@ set -o errtrace -o errexit -o nounset -o pipefail # KEYCLOAK_BASE_URL=http://localhost:7002 KEYCLOAK_BASE_URL=https://keycloak.dev.spiffworkflow.org -BACKEND_BASE_URL=http://localhost:7000 -# BACKEND_BASE_URL=https://api.dev.spiffworkflow.org +# BACKEND_BASE_URL=http://localhost:7000 +BACKEND_BASE_URL=https://api.dev.spiffworkflow.org REALM_NAME=spiffworkflow USERNAME=${1-fin} PASSWORD=${2-fin} @@ -61,6 +61,7 @@ result=$(curl -s -X POST "$KEYCLOAK_URL" "$INSECURE" \ -d "client_id=$BACKEND_CLIENT_ID" \ ) backend_token=$(jq -r '.access_token' <<< "$result") +echo "testing hitting backend with token: $backend_token" curl --fail -v "${BACKEND_BASE_URL}/v1.0/process-groups?per_page=1" -H "Authorization: Bearer $backend_token"