From e80c402782a9ab435dbccd35024806ee5149ef9c Mon Sep 17 00:00:00 2001 From: jasquat Date: Tue, 7 Mar 2023 12:14:12 -0500 Subject: [PATCH] minor tweaks to get_token w/ burnettk --- spiffworkflow-backend/bin/get_token | 2 -- 1 file changed, 2 deletions(-) diff --git a/spiffworkflow-backend/bin/get_token b/spiffworkflow-backend/bin/get_token index f5ec32e0..92156559 100755 --- a/spiffworkflow-backend/bin/get_token +++ b/spiffworkflow-backend/bin/get_token @@ -26,7 +26,6 @@ if [[ -z "${BACKEND_BASE_URL:-}" ]]; then fi if [[ -z "${KEYCLOAK_BASE_URL:-}" ]]; then # KEYCLOAK_BASE_URL=http://localhost:7002 - KEYCLOAK_BASE_URL=https://keycloak.dev.spiffworkflow.org if grep -qE "spiffworkflow.org" <<<"$BACKEND_BASE_URL" ; then env_domain=$(sed -E 's/.*api\.(\w+\.spiffworkflow.org).*/\1/' <<<"${BACKEND_BASE_URL}") KEYCLOAK_BASE_URL="https://keycloak.${env_domain}" @@ -72,7 +71,6 @@ result=$(curl -s -X POST "$KEYCLOAK_URL" "$INSECURE" \ -d "password=$PASSWORD" \ -d 'grant_type=password' \ -d "client_id=$BACKEND_CLIENT_ID" \ - -d "audienc111e=${BACKEND_CLIENT_ID}" \ ) backend_token=$(jq -r '.access_token' <<< "$result") if [[ -z "$backend_token" || "$backend_token" == "null" ]]; then