Skip to content

Commit

Permalink
keycloak realm setup for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Mozammil Khan committed Oct 28, 2024
1 parent 159f87d commit d9e7666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ spec:
echo "Attempting to obtain token from Keycloak (Attempt $ATTEMPT)..."
# Attempt to get the token
TOKEN=$(curl -k -X POST "$KEYCLOAK_URL/realms/master/protocol/openid-connect/token" \
--data "grant_type=password&client_id=admin-cli&username=$USERNAME&password=$PASSWORD" | jq -r .access_token)
export TOKEN=$(curl -k -X POST "$KEYCLOAK_URL/realms/$REALM/protocol/openid-connect/token" \
--data "grant_type=password&client_id=admin-cli&username=$USERNAME&password=$PASSWORD" \
| jq -r .access_token)
if [ -z "$TOKEN" ] || [ "$TOKEN" = "null" ]; then
echo "Failed to obtain token, retrying in 30 seconds..."
Expand Down
Binary file modified packages/sunbird_rc_charts-0.0.3.tgz
Binary file not shown.

0 comments on commit d9e7666

Please sign in to comment.