Skip to content
Ditchly
Menu

Last checked November 16, 2026

Migrate from Auth0 to Keycloak

We earn commissions when you shop through the links below.

Export user profiles, plan a password reset, recreate each application as a Keycloak client, and cut one app over before the rest. Password hashes are a support request, not a button.

How long: A day for one application and a password reset. Several days when you have social connections, Actions, and more than one client.

Take it out

  1. Step 1

    Export user profiles without the hashes

    Use Auth0's bulk user export for emails, names, and user ids. That file is the directory you can recreate. It is not a working password file. Keep the tenant name and each connection name in your notes, because users can come from more than one database.

  2. Step 2

    Request password hashes only if you must avoid a reset

    Auth0's doc says a password-hash export is a support case. You send a PGP public key of at least 4096 bits, with an encryption subkey, and Auth0 reviews whether the tenant qualifies. There is no promised date. If it is approved, another admin may have to confirm it, and an executive signs a form. The download link expires after 3 days and only works for the admin who opened the case. The file is PGP-encrypted NDJSON. Decrypt it with the private key and do not email it.

  3. Step 3

    Write down every application

    List each Auth0 application, its callback URLs, logout URLs, and the social connections it uses. Actions and rules do not export into Keycloak. Screenshot the ones that block a login or add a claim.

Put it in

  1. Step 1

    Stand up Keycloak and one test client

    Install Keycloak with a database you can back up. Create a realm, then one client for a single app. Copy that app's callback URLs. Point the app at the new issuer in a staging environment. Confirm a new user can register or log in before you import anyone.

  2. Step 2

    Import profiles and reset database passwords

    Create the users from the profile export. Keycloak's admin guide lists argon2 and pbkdf2 as the built-in password hashes. It does not list Auth0's bcrypt hashes. Unless you have a reviewed hash import and you have tested one real login, send a password reset. Social users reconnect after you recreate those identity providers. Do not tell people their old password will work.

  3. Step 3

    Move one production app, then the rest

    Change the issuer on one low-risk app, watch logins, and only then update the others. Leave the Auth0 tenant in place until those logins succeed. A user who still has a session on the old issuer will not follow you automatically.

Need a server? DigitalOcean is one simple option. Railway is another.

We are a DigitalOcean affiliate.

We may earn from this Railway link.

What you lose

  • Actions, MFA secrets, and organizations

    Auth0 Actions are rewritten as Keycloak flows. An MFA secret export is the same support process as the password hashes, and it is not guaranteed. Organizations in Auth0 do not appear because you imported a user list. Recreate the ones you still need.

  • The free Auth0 plan is not the same as free Keycloak

    Auth0's pricing page lists a free plan up to 25,000 monthly active users, with limits that are not the paid feature set. Keycloak is free because you run it. Java upgrades, the database, and downtime are yours.

  • A bad cutover locks people out

    If the new client rejects the callback URL, users see an error and the old app is already pointing at Keycloak. Keep the Auth0 application enabled, and keep a way to put the old issuer back, until a real user has logged in.

Auth0's hash-export steps are on https://auth0.com/docs/manage-users/user-migration/export-password-hashes-and-mfa-secrets. Keycloak's password hashes are in the server admin docs. Plan prices are on the Auth0 alternatives page.

https://ditchly.co/migrate/auth0-to-keycloak