diff --git a/Keycloak/update-kc.sh b/Keycloak/update-kc.sh index 7b070e9..94d2973 100644 --- a/Keycloak/update-kc.sh +++ b/Keycloak/update-kc.sh @@ -63,7 +63,7 @@ do --data-raw "$line") echo -e " Response : $result\n" default_scopes=$(echo "$line" | jq -r '.defaultClientScopes[]') - CLIENT_UUID=$(curl -sX GET "$KC_BASE_URL/$KC_REALM_ID/clients" \ + CLIENT_UUID=$(curl -s -v -w "%{http_code}" -X GET "$KC_BASE_URL/$KC_REALM_ID/clients" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TKN" \ | jq '.[] | select(.clientId=="'"$CLIENT_ID"'")' | jq -r '.id')