|
|
@ -20,6 +20,7 @@ CLIENT_ID="$(docker-compose exec -T keycloak \ |
|
|
|
--server http://localhost:8080/ \ |
|
|
|
--server http://localhost:8080/ \ |
|
|
|
--user admin \ |
|
|
|
--user admin \ |
|
|
|
--password "$KEYCLOAK_ADMIN_PASSWORD" \ |
|
|
|
--password "$KEYCLOAK_ADMIN_PASSWORD" \ |
|
|
|
|
|
|
|
--realm master \ |
|
|
|
-r "$REALM" \ |
|
|
|
-r "$REALM" \ |
|
|
|
| jq -r ".[] | select( .clientId == \"$CLIENT_NAME\" ).id")" |
|
|
|
| jq -r ".[] | select( .clientId == \"$CLIENT_NAME\" ).id")" |
|
|
|
|
|
|
|
|
|
|
@ -33,6 +34,7 @@ docker-compose exec -T keycloak \ |
|
|
|
delete "clients/$CLIENT_ID" \ |
|
|
|
delete "clients/$CLIENT_ID" \ |
|
|
|
--server http://localhost:8080/ \ |
|
|
|
--server http://localhost:8080/ \ |
|
|
|
--user admin \ |
|
|
|
--user admin \ |
|
|
|
|
|
|
|
--realm master \ |
|
|
|
--password "$KEYCLOAK_ADMIN_PASSWORD" \ |
|
|
|
--password "$KEYCLOAK_ADMIN_PASSWORD" \ |
|
|
|
-r "$REALM" \ |
|
|
|
-r "$REALM" \ |
|
|
|
|| die "$CLIENT_NAME($CLIENT_ID): unable to remove" |
|
|
|
|| die "$CLIENT_NAME($CLIENT_ID): unable to remove" |
|
|
|