This script sets up a local Keycloak instance for development and testing in the context of the GlobaLeaks project.
It automates the provisioning of a Keycloak realm, test user, and client required to test GlobaLeaks' OpenID Connect (OIDC) integration locally, using Docker.
- Pulls the latest Keycloak Docker image from quay.io
- Starts a local Keycloak container on port
9090 - Waits for Keycloak to become available
- Automatically:
- Creates a new realm named
globaleaks - Adds a user
globaleakswith passwordglobaleaks - Configures a client
globaleakswith direct access grants andhttps://127.0.0.1:8443/*as a redirect URI
- Creates a new realm named
This setup is designed specifically to test OIDC authentication in GlobaLeaks without relying on an external identity provider.
- Docker
- curl
chmod +x setup-testing-keycloak.sh
./setup-testing-keycloak.sh