Getting started
Localhost, no DNS
DNS is not required. For local development use HTTP and localhost.
APP_URL=http://localhost:3000
KEYCLOAK_ISSUER=http://localhost:8080/realms/identity
KEYCLOAK_CLIENT_ID=account-center
KEYCLOAK_CLIENT_SECRET=local-secret
KEYCLOAK_ADMIN_CLIENT_ID=identity-console-admin
KEYCLOAK_ADMIN_CLIENT_SECRET=local-admin-secret
SESSION_SECRET=local-session-secret-change-me
DATABASE_URL=postgres://account_center:local@localhost:5432/account_center
SMTP_HOST=localhost
SMTP_PORT=1025
Create the Keycloak client with:
Redirect URI: http://localhost:3000/api/auth/callback
Web origin: http://localhost:3000
Run the app:
npm run dev
Open http://localhost:3000. No /etc/hosts, no Caddy, no TLS, no DNS.
For a full local Keycloak stack use the Keycloak Identity Kit compose/local.yaml.
Production
Prerequisites
- Keycloak 26.8.x
- PostgreSQL
- SMTP provider
- for production, a stable public URL and TLS (localhost is fine for local development)
- Docker or a Node 24 runtime
1. Keycloak client
Create a confidential OIDC client:
Client ID: account-center
Valid redirect URI: https://id.example.com/api/auth/callback
Web origin: https://id.example.com
Create a service-account client for Admin API access:
Client ID: identity-console-admin
Service accounts enabled: true
Grant realm-management:
view-users
manage-users
view-clients
manage-clients
view-realm
manage-realm
manage-identity-providers
view-identity-providers
Also assign the kc-admin-api client scope on Keycloak 26.8+.
2. Environment
APP_URL=https://id.example.com
KEYCLOAK_ISSUER=https://id.example.com/realms/identity
KEYCLOAK_CLIENT_ID=account-center
KEYCLOAK_CLIENT_SECRET=...
KEYCLOAK_ADMIN_CLIENT_ID=identity-console-admin
KEYCLOAK_ADMIN_CLIENT_SECRET=...
SESSION_SECRET=...
DATABASE_URL=postgres://...
SMTP_HOST=...
SMTP_PORT=587
SMTP_STARTTLS=true
SMTP_FROM=no-reply@example.com
METRICS_TOKEN=...
3. Run
docker run -d --name identity-console \
--env-file .env \
-p 3000:3000 \
vibhuvioio/identity-console:1.0.0
Put a TLS reverse proxy in front and publish only 443.
4. First sign-in
-
1
Open
https://id.example.com. - 2 Sign in through Keycloak.
- 3 The first realm administrator becomes the workspace owner.
- 4 Invite the rest of the team from People & access.
5. Verify
GET /signed-out 200
GET /metrics (Bearer token) 200
POST /api/auth/login 303 to Keycloak