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