From ff684c813bbcad4f8504375f9cf5b477b9842e2e Mon Sep 17 00:00:00 2001 From: Khaled <45347802+JavaDeveloper456788@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:16:15 -0800 Subject: [PATCH] Update update-kc.sh --- Keycloak/update-kc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')