Skip to content

Commit

Permalink
Fix keycloak hardcoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSt99 authored Jan 31, 2023
1 parent aceeddb commit b5be4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keycloak.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
echo "Waiting for keycloak to fully start..."
while [ "$(curl --location --silent --output /dev/null -w "%{http_code}" --show-error ${KEYCLOAK_ADDRESS}:8080/auth)" != "200" ]; do sleep 1; done
while [ "$(curl --location --silent --output /dev/null -w "%{http_code}" --show-error ${KEYCLOAK_ADDRESS})" != "200" ]; do sleep 1; done
echo "Keycloak has started!"
echo "Obtaining token..."
token=$(curl --silent --data "username=${KEYCLOAK_ADMIN}&password=${KEYCLOAK_ADMIN_PASSWORD}&grant_type=password&client_id=admin-cli" ${KEYCLOAK_ADDRESS}/realms/master/protocol/openid-connect/token)
Expand Down

0 comments on commit b5be4e5

Please sign in to comment.