Keycloak · Migration · Platform engineering · OIDC · SAML
Keycloak migration: what moves, what doesn't, and how to validate it
Planning a Keycloak migration? What a realm-export import brings across, what you rebuild, how users move without a one-step password migration, and how to validate and cut over application by application.
- Imported
- Clients, roles and identity providers
- Rebuilt
- Users, SAML clients and realm settings
- Users
- Directory, SCIM, brokering or first sign-in
- Cut-over
- One application at a time, both IdPs running
On this page
Keycloak is the reference point for self-hosted identity, and plenty of teams run it well. Some of them still want to move: they need EU eID connectors, keys held in an HSM, or one accountable vendor for the whole stack. Others inherit a Keycloak estate and have to decide what a move would really involve.
This article is about the move itself. It is deliberately specific about what an import covers and what it does not, because that is where migration plans go wrong. The short version: your applications speak OIDC and SAML, and so does HelixIAM, so the work is gradual and per application, not a single night.
Start from what your applications actually use
HelixIAM is a standards-based OpenID Connect and OAuth 2 provider, and a SAML 2.0 identity provider for your existing applications. For most applications, moving means pointing them at a new discovery URL and new client credentials. The harder questions are about everything around the applications: who your users are, how they authenticate, and which realm settings your security team relies on.
So begin with an assessment. List your realms, clients (OIDC and SAML), roles, groups, identity providers, authentication flows, custom extensions and themes, user sources and the MFA methods in use. Map each item to its HelixIAM equivalent. The output is a migration map, a gap list, a user strategy and a validation plan.
What the importer brings across
HelixIAM can import from a Keycloak realm export. The public wording is deliberately narrow, and we repeat it here: you can import clients, roles and identity providers.
| Imported from the realm export | What you do afterwards |
|---|---|
| OIDC clients | Review them; check redirect URIs, scopes and logout settings per application |
| Realm roles | Review the role model against what your applications expect |
| Identity providers | Check each brokered provider end to end |
What you rebuild
The importer does not carry the following. Plan for each one rather than discovering it during cut-over.
- Users and passwords. Not imported. See the next section.
- SAML clients. Not in the import today. You recreate them as SAML service providers.
- Realm settings. You set them on the target realm: password policy, lockout, MFA requirement, sessions and branding. HelixIAM gives you Argon2id password hashing, lockout and breached-password checks, and multi-factor authentication with authenticator apps on by default.
- Everything custom. Groups, mappers, authentication flows, themes and any custom extensions are mapped in the assessment and rebuilt with HelixIAM’s own features. You can design sign-in journeys in the admin console, with a simple step view and an advanced flow canvas.
None of this is unusual for a move between identity platforms. The point is to know the list before you commit to a date.
How users move
We will not promise a one-step migration of users and passwords. Credentials are re-established. Which route fits depends on where your users come from, and most migrations combine two.
- Your directory stays the source. If Keycloak federates LDAP or Active Directory today, connect the same directory to HelixIAM. Users keep their existing credentials, and no password migration is needed at all.
- Provision from your source system. If an HR system or IGA tool is the source of truth, HelixIAM offers SCIM 2.0 provisioning, inbound and outbound.
- Broker through Keycloak during the transition. Add your Keycloak realm as an OIDC identity provider in HelixIAM. Users sign in through Keycloak as before, so day one has no user impact, and you retire the broker when everyone has moved. Brokering is Beta, and the matching of existing accounts needs checking in each pilot.
- Set a credential at first sign-in. Users move to passwordless methods, such as passkeys (WebAuthn/FIDO2), or the optional magic link by e-mail, or set a new password. MFA enrolments are re-created: users enrol an authenticator app or a passkey the first time they sign in.
Federation and brokering are the lowest-friction routes, because users do not notice a change until you decide they should. Passkeys make the re-enrolment step short for users who are ready for it.
A validation plan, per application
Validation is where a migration earns trust. Run the same checks for every application, in a non-production environment first.
- Discovery and keys. The application reads the discovery document and the signing keys, and accepts the token signature algorithm.
- Sign-in. The authorization code flow with PKCE (or a SAML SSO round trip) works, including redirect URIs and consent where configured.
- Tokens and claims. Check
sub, e-mail, roles, custom claims, audience and lifetimes. Your applications must trust the new issuer, so confirm each one pins the right values. - Refresh and session. Refresh behaviour, silent re-authentication and session timeouts match what the application expects.
- Logout. Single sign-on and single logout work across OIDC and SAML applications. Test each logout style your applications use.
- MFA and step-up. MFA is enforced where required; passkeys work; adaptive step-up, which is Beta, behaves where you use it.
- Service accounts. Back-end calls with client credentials get the right scopes and roles.
- Federation. Each user population signs in through its own route: directory, broker or local.
- Audit. Sign-ins and admin changes show up in the audit log you will rely on.
- Negative tests. Wrong redirect URI, expired token, disabled user, locked account.
- Rollback. Re-pointing the application back to Keycloak is tested before go-live, not after.
Treat the token checks as the most important ones. Applications often depend on small details in claims, and the cheapest time to find a difference is in the test environment.
Cut over one application at a time
The pattern that holds up is simple.
- Start with a low-risk internal application. It teaches you the process without an audience.
- Move applications one by one. Change each application’s issuer or discovery URL and client credentials. Keycloak keeps running for everything else.
- Move user cohorts with the strategy you chose, and use brokering so users of applications that have not moved are unaffected.
- Watch the audit log and metrics during every switch. HelixIAM exposes Prometheus metrics and alert rules out of the box.
- Decommission Keycloak last, after the final application and the final user cohort have moved.
Nothing is switched off until each application has been validated on the new platform. That is slower than a big-bang cut-over on paper, and faster in practice, because the failures are small and reversible.
Keycloak with DigiD or eHerkenning
Dutch public-sector teams often ask this question directly. HelixIAM includes a DigiD connector and an eHerkenning connector, both Beta, which you use with your own Logius or broker agreement. In the public documentation of Keycloak we found no built-in DigiD or eHerkenning connector. Keycloak’s generic SAML broker might be configurable for these schemes, but we have not verified that against the DigiD profile, so we make no claim either way. If DigiD is part of your move, plan that connection as its own workstream with its own testing.
What we do not claim
- We do not claim a full migration. The importer covers clients, roles and identity providers, and nothing else.
- We do not describe brokering, SAML or the eID connectors as finished: they are Beta.
- We make no claim of independent testing: an independent penetration test is in preparation.
How to start
You do not need to decide everything at once. We suggest three steps.
- A technical demo. Our engineers show the import, a realm and the sign-in journeys on a running system.
- Your use case. We map your realms, applications and user sources to a migration plan, including what the importer will not carry.
- A paid pilot. If it fits, a pilot on your own infrastructure with success criteria agreed up front: one realm imported, a few applications validated end to end, and a cut-over plan for the rest.
HelixIAM is commercial software from KubeDNA B.V., available under a commercial licence, and it is in early access. We are now onboarding launch partners. If a Keycloak move is on your roadmap, a demo is a good place to start.