Skip to content

Commit

Permalink
Update update-kc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaDeveloper456788 authored Dec 6, 2024
1 parent ce6e9ed commit 5467806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Keycloak/update-kc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ KC_BASE_URL=$1
KC_PASSWORD=$2
KC_USERNAME=$3
KC_REALM_ID=$4
SCRIPTS_PATH=$5


echo Fetching SOAM token
Expand All @@ -18,11 +19,12 @@ TKN=$(curl -s \

#Create Roles
echo -e "CREATE Roles \n"
echo "$SCRIPTS_PATH"
while read line
do
#curl -sX POST "https://$KC_BASE_URL/$KC_REALM_ID/roles" \
#--header "Authorization: Bearer $TKN" \
#--header "Content-Type: application/json" \
#--data-raw "$line"
echo -e "\n"
done < grad-roles.dat
done < $SCRIPTS_PATH/grad-roles.dat

0 comments on commit 5467806

Please sign in to comment.