Migration guide

Migrate from Auth0 to a Self-Hosted Identity Provider

Auth0 bills by monthly active users, so the identity bill rises as your product grows, and every sign-in to your applications depends on a third-party service. Running your own identity provider fixes the price and puts authentication back under your control. This guide compares Keycloak, Authentik, Zitadel and Logto on Elestio, lists the trade-offs, and walks through a migration based on the official documentation, including your options for passwords.

Deploy Keycloak Read the migration guide
AWS Azure Hetzner DigitalOcean Vultr Linode Scaleway Netcup TensorDock On-Premise
Trustpilot 4.6/5 G2 G2 4.8/5 SOC 2 ISO 27001 GDPR

4 self-hosted identity providers to replace Auth0

01

Keycloak

The most complete identity provider

OpenID Connect, SAML 2.0, LDAP and Active Directory federation, social login, roles, realms and extensible authentication flows. The heaviest of the four: plan a 4 GB RAM server in production.

Pricing
License: Apache 2.0
From $11/month on Elestio (entry plan); 4 GB plans from $16/month
Best for
Teams that need the widest protocol and federation support.
02

Authentik

Modern UI and custom login flows

OIDC, SAML, LDAP and RADIUS providers, visual login and enrollment flows, and Python expression policies for custom logic.

Pricing
License: open source core (MIT, enterprise features under a commercial license)
From $16/month on Elestio
Best for
Teams that want a modern admin UI and flexible flows.
03

Zitadel

Multi-tenant, API-first, with Actions

Organizations for B2B multi-tenancy, hosted login, SDKs and Actions to customize flows: the closest to the Auth0 developer model, with Logto.

Pricing
License: AGPL 3.0
From $11/month on Elestio
Best for
SaaS products giving each customer its own tenant.
04

Logto

Developer-first auth for your app

Ready-made sign-in experience, SDKs for most frameworks, organizations and role-based access control, as an OIDC provider.

Pricing
License: MPL 2.0
From $11/month on Elestio
Best for
Developers replacing Auth0 in their own application.

Auth0 vs a self-hosted identity provider

Self-hosted on Elestio Auth0
Pricing model Fixed price per server, from $11/mo Plans based on monthly active users
Where user data lives Your server, your cloud and region Auth0 infrastructure
Protocols OIDC, OAuth 2.0, SAML (Keycloak, Authentik, Zitadel) OIDC, OAuth 2.0, SAML
Custom logic Flows, extensions, Actions (depending on the tool) Auth0 Actions
Availability Your responsibility, infrastructure managed by Elestio Managed by Auth0
Password hash export Your database Support ticket, not on the Free plan
License Open source or open source core Proprietary

Auth0 facts from the official Auth0 documentation, checked on November 19, 2026.

What you gain, what you give up

What you gain

  • + A fixed price per server instead of a bill that grows with monthly active users.
  • + Your user directory, credentials and logs on your own server, in the region you choose.
  • + Open source code you can inspect and extend.

What you give up

  • − Availability becomes your responsibility: if the identity provider is down, nobody can sign in. Elestio manages the infrastructure, backups and updates; the identity configuration remains yours.
  • − Auth0 Actions and built-in attack protections need equivalents that you set up yourself. Keycloak, for example, includes brute force detection, disabled by default.
  • − Keycloak in particular takes time to learn: realms, clients, mappers and flows.

How to migrate from Auth0, step by step

Each step links to the official documentation it relies on.

  1. 1

    Inventory your Auth0 tenant

    List your applications, connections (database, social, enterprise), roles, Actions and the user metadata you rely on. This is your migration checklist.

  2. 2

    Export your users

    Run a bulk user export job through the Auth0 Management API. User profiles and metadata are available through the API at any time; password hashes are not.

    Source: Auth0: Bulk User Exports, Auth0: Export Data

  3. 3

    Choose how to handle passwords

    Start upstream: Auth0 exports password hashes and MFA secrets only through a support ticket, not on the Free plan and without a guaranteed date, in a file encrypted with a PGP key you provide. Keycloak natively supports Argon2 and PBKDF2. If the exported hashes use a format Keycloak does not support, two options remain. Migrate on the fly: a Keycloak user storage provider checks each password against the old system at first login, then stores the user locally. Reset passwords: import users without passwords and send a reset email.

    Source: Auth0: Export Password Hashes and MFA Secrets, Auth0: Export Data, Keycloak Server Administration: HashAlgorithm, Keycloak Server Developer Guide: Import implementation strategy

  4. 4

    Deploy your identity provider on Elestio

    Deploy Keycloak (on a 4 GB plan for production), Authentik, Zitadel or Logto in the region of your choice, with automated backups, updates and SSL handled by Elestio.

  5. 5

    Recreate applications, roles and social connections

    Create a client per application, then your roles and groups. Auth0 notes that you can keep the same OAuth client IDs and secrets for your social identity providers, so users do not see a new consent screen.

    Source: Auth0: Export Data

  6. 6

    Switch your applications to the new issuer

    Auth0 relies on OpenID Connect, so applications built on standard OIDC libraries mostly need a new issuer URL, client ID and secret. Code written against Auth0-specific SDKs or APIs needs more changes.

    Source: Auth0: Export Data

  7. 7

    Test, run in parallel, then turn off Auth0

    Test sign-in, sign-up, password reset and MFA for each application, migrate in stages if you can, and only close the Auth0 tenant once every application has switched.

Run your identity provider on your own server

Free trial. Keycloak, Authentik, Zitadel or Logto, fully managed by Elestio.

Start free trial All identity services

Reviews

Trusted by 10,000+ Developers Worldwide

Real reviews from real users on Trustpilot.

Frequently Asked Questions

  • Can I migrate Auth0 users with their passwords?

    Not by default. Auth0 does not expose password hashes through its API: you can request them, with MFA secrets, by opening a support ticket, which is not available on the Free plan and has no guaranteed date, and the file is encrypted with your PGP key. Keycloak supports Argon2 and PBKDF2 natively. If the exported hashes use a format Keycloak does not support, you can migrate users on the fly, with a custom provider that checks each password against the old system at first login, or ask every user to reset their password.

  • Keycloak or Authentik: which one to replace Auth0?

    Keycloak is the most complete, with the widest protocol and federation support, but it is heavier and takes longer to configure. Authentik is lighter, with a modern interface and visual flows. If you used Auth0 mainly to add sign-in to your own app, Zitadel and Logto are closer to its developer model, with SDKs, hosted login and organizations.

  • Do I need to change my application code?

    Usually little, if your applications use standard OpenID Connect libraries: you change the issuer URL, client ID and secret. Code that relies on Auth0-specific SDKs, the Management API or Actions needs more work, so list those dependencies first.

  • What replaces Auth0 Actions?

    It depends on the tool: Keycloak uses configurable authentication flows and Java extensions, Authentik uses flows with Python expression policies, and Zitadel has its own Actions. Rewrite each Action against the equivalent mechanism, and test it before switching users over.

  • How much does a self-hosted identity provider cost?

    On Elestio, from $11/month for Keycloak (entry plan; $16/month for the 4 GB plan recommended in production), Zitadel and Logto, and from $16/month for Authentik, fully managed. The price is fixed per server, whatever the number of users.

Leave Auth0 on your terms

Free trial. Deploy your identity provider in minutes, fully managed by Elestio.

Start free trial