diff --git a/bin/get_token b/bin/get_token index 4e6aca02..dc26e769 100755 --- a/bin/get_token +++ b/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"