Test SSO locally (Keycloak)
Connect the devcontainer Keycloak to the Administration → Identity & SSO screen and validate a local sign-in.
In brief
The devcontainer provides a preconfigured Keycloak realm for testing OIDC SSO without an external provider. Enable the Enterprise edition, check the discovery document, then save the local connection in Brume.
Development data only
The realm, accounts, and client secret below are intentionally committed. Do not reuse them on an exposed or production instance.
Prepare the devcontainer
Enable the Enterprise routes.
make enterprise-onThis command enables these routes in the current environment. A new devcontainer starts Keycloak inside the nested Docker daemon and imports the brume-dev realm. If your container predates this service, run Dev Containers: Rebuild Container.
Check the discovery document from the devcontainer.
curl -fsS http://keycloak:8080/realms/brume-dev/.well-known/openid-configuration \
| jq '{issuer, authorization_endpoint, token_endpoint, jwks_uri}'The issuer field must be http://localhost:8080/realms/brume-dev. The browser uses this public address; the backend reaches Keycloak through the internal keycloak hostname.
Configure the local connection
Open Administration → Identity & SSO, then enter:
| Field | Value |
|---|---|
| Display name | Local Keycloak |
| Issuer URL | http://localhost:8080/realms/brume-dev |
| Internal issuer URL | http://keycloak:8080/realms/brume-dev |
| Client ID | brume |
| Client secret | brume-dev-client-secret |
| Scopes | openid email profile |
| Allowed JIT domains | exemple.fr |
Keep automatic account creation enabled and do not require SSO yet. The devcontainer already allows the internal keycloak hostname. The realm callback is http://localhost:8000/api/auth/sso/callback.
Save, then test the connection. The status must show that the issuer and signing keys are reachable.
Test a member sign-in. Sign out of Brume, choose Local Keycloak, then use either account:
| Account | Password |
|---|---|
[email protected] | brume-dev-alice |
[email protected] | brume-dev-bob |
Both emails are verified and can validate JIT account creation.
The Keycloak console is available at http://localhost:8080/admin/ with admin and brume-dev-admin.