Migration

Migrate from Keycloak

Idenplane follows similar concepts to Keycloak — realms, clients, roles, groups. Most migrations require just a realm export/import and URL change.

This guide walks through migrating from Keycloak to Idenplane — a lightweight, self-hosted Keycloak alternative. Because Idenplane implements the same standards (OAuth 2.0, OpenID Connect, and SAML 2.0) and mirrors Keycloak’s core concepts — realms, clients, roles, groups, and LDAP federation — most migrations come down to a realm export/import and a change of issuer URL in your applications. Password hashes in Keycloak’s legacy PBKDF2-SHA256 credential format are carried over; users whose credentials use another format reset their password. Running both servers in parallel means there’s no hard cutover. New to the project? Start with Idenplane vs Keycloak.

Before you begin

  • Admin access to your Keycloak instance, to export the realm and users.
  • A host for Idenplane (Docker or Kubernetes) plus a PostgreSQL database.
  • The Idenplane admin API key (ADMIN_API_KEY in your .env; the setup helper generates one), and optionally the CLI.
  • A staging environment so you can validate every flow before touching production.

Why migrate from Keycloak?

⚡
194 MiB
idle RAM (one process) vs 464 MiB for Keycloak in our published benchmark
🛠
TypeScript
Node.js / NestJS stack instead of Java
📦
9 SDKs
TypeScript (with React), Next.js, Vue, Angular, Go, Python, Java, iOS, Android, plus a CLI
🎨
React 19
Admin console

Memory figures: published benchmark, same machine and limits. With WEB_CONCURRENCY workers Idenplane uses more memory than Keycloak at idle.

Feature Mapping

Keycloak Idenplane Notes
Realm Realm Same concept — 1:1 mapping
Client (confidential) Client (confidential) Imported by the Keycloak importer
Client (public) Client (public) Direct mapping, PKCE enforced
Realm Roles Realm Roles Same RBAC model
Client Roles Client Roles Same scoping
Groups Groups Hierarchical groups supported
User Federation (LDAP) User Federation (LDAP) LDAP/AD federation and sync
Identity Providers Identity Providers Configure OIDC, OAuth 2.0 or SAML providers for sign-in
Authentication Flows Authentication Flows Own flow engine (flows are not imported); runs at login only when enabled
Themes Realm Theming Per-realm login page themes
Events Events / Audit Logs Login + admin events
Client Scopes Scopes OAuth scopes with claims mapping

Step-by-Step Migration

1

Export Your Keycloak Realm

Use Keycloak's built-in export to create a JSON realm export file.

# Keycloak CLI export
bin/kc.sh export --dir /tmp/export --realm my-realm --users realm_file

# Or in the Keycloak Admin Console:
# Realm Settings > Action > Partial export
# (tick "Export clients" and "Export groups and roles"; no users)
2

Deploy Idenplane

Start a fresh Idenplane instance with Docker Compose (see Getting Started).

# Start Idenplane (setup-env.cjs writes .env with unique secrets)
node setup-env.cjs
docker compose up -d --wait --wait-timeout 180

# Verify it's running
curl http://localhost:3000/health
3

Import Realm to Idenplane

Use the Idenplane Admin API or CLI to import your Keycloak realm export.

# Using the Idenplane CLI's dedicated Keycloak importer
# (translates roles, groups, and identity providers — not a raw realm import)
idenplane migrate keycloak --file realm-export.json --dry-run
idenplane migrate keycloak --file realm-export.json

# Or via Admin API directly
curl -X POST "http://localhost:3000/admin/migration/keycloak" \
  -H "x-admin-api-key: ${ADMIN_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"data": '"$(cat realm-export.json)"'}'
4

Migrate Users

Users in the realm export (kc.sh export --users realm_file) are imported by the same migration call. Password hashes are kept only for Keycloak's legacy PBKDF2-SHA256 credential format (hashedSaltedValue + salt), and are rehashed to Argon2id at first sign-in. Credentials in other formats are not imported yet, so those users must reset their password.

# Users come from the same realm export; the dry-run report
# lists every user and any password that could not be carried over
idenplane migrate keycloak --file realm-export.json --dry-run

# After the import, check the users
idenplane user list --realm my-realm
5

Update Client Applications

Update your applications to point to Idenplane. Since Idenplane implements the same OIDC/OAuth 2.0 endpoints, most apps only need a URL change.

# Keycloak (before)
OIDC_ISSUER=https://keycloak.example.com/realms/my-realm

# Idenplane (after) — same endpoint pattern!
OIDC_ISSUER=https://auth.example.com/realms/my-realm

# Discovery endpoint works the same way
curl https://auth.example.com/realms/my-realm/.well-known/openid-configuration
6

Verify & Cutover

Test authentication flows, verify token validation, and gradually shift traffic from Keycloak to Idenplane.

# Check the imported users
idenplane user list --realm my-realm

# Test OIDC Discovery
curl https://auth.example.com/realms/my-realm/.well-known/openid-configuration

# Test token endpoint
curl -X POST https://auth.example.com/realms/my-realm/protocol/openid-connect/token \
  -d "grant_type=client_credentials" \
  -d "client_id=my-app" \
  -d "client_secret=my-secret"

Common questions

Will my users have to reset their passwords?

It depends on the export. The importer keeps password hashes only in Keycloak’s legacy PBKDF2-SHA256 credential format (hashedSaltedValue + salt); those users keep their password, which is rehashed to Argon2id at first sign-in. Credentials in any other format are not imported yet, so those users reset their password.

Do my applications need code changes?

Rarely. Idenplane exposes the same OIDC discovery and token endpoints as Keycloak, so most apps only need the issuer URL updated. You can optionally adopt an official Idenplane SDK for a better developer experience.

How much downtime is involved?

Little, if you run both servers in parallel (sessions do not carry over, so users sign in again once). Migrate a non-critical client first, shift traffic gradually (10% → 50% → 100%), and keep Keycloak as a fallback until everything is validated.

Rollback Plan

Keep Keycloak running during migration. Use DNS or a reverse proxy to gradually shift traffic:

  1. Run Idenplane alongside Keycloak (different port or hostname)
  2. Migrate a non-critical client first to validate
  3. Shift production traffic gradually (10% → 50% → 100%)
  4. Keep Keycloak as fallback for 2 weeks after full cutover
  5. Decommission Keycloak once fully validated