Skip to content

Commit

Permalink
Once more without debug code...
Browse files Browse the repository at this point in the history
  • Loading branch information
dbutenhof committed Jul 3, 2023
1 parent 67b32c1 commit 7ad586e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/pbenchinacan/load_keycloak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ curl -si -f -X POST \
]
}'

echo "Setting redirect [ ${KEYCLOAK_DEV_REDIRECT}, ${KEYCLOAK_REDIRECT_URI} ]"

set -vx
CLIENT_CONF=$(curl -si -f -X POST \
"${KEYCLOAK_HOST_PORT}/admin/realms/${REALM}/clients" \
-H "Authorization: Bearer ${ADMIN_TOKEN}" \
Expand All @@ -123,10 +120,7 @@ CLIENT_CONF=$(curl -si -f -X POST \
"attributes": {"post.logout.redirect.uris": "+"},
"redirectUris": ["'${KEYCLOAK_REDIRECT_URI}'", "'${KEYCLOAK_DEV_REDIRECT}'"]}')

echo "client ${?}, output ${CLIENT_CONF}"

CLIENT_ID=$(grep -o -e 'https://[^[:space:]]*' <<< ${CLIENT_CONF} | sed -e 's|.*/||')
echo "CLIENT_ID: ${CLIENT_ID}"
if [[ -z "${CLIENT_ID}" ]]; then
echo "${CLIENT} id is empty"
exit 1
Expand Down

0 comments on commit 7ad586e

Please sign in to comment.