Brume · Docs
SSO

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-on

This 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:

FieldValue
Display nameLocal Keycloak
Issuer URLhttp://localhost:8080/realms/brume-dev
Internal issuer URLhttp://keycloak:8080/realms/brume-dev
Client IDbrume
Client secretbrume-dev-client-secret
Scopesopenid email profile
Allowed JIT domainsexemple.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:

AccountPassword
[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.

On this page