Migration

Migrate from Auth0

Stop paying per-MAU. Idenplane covers the core features — OAuth 2.0, social login, MFA, organizations — on your own servers.

This guide walks through migrating from Auth0 to Idenplane — an open-source, self-hosted Auth0 alternative. Idenplane implements the same standards you already use (OAuth 2.0, OpenID Connect, and SAML 2.0) and maps Auth0’s concepts — tenants, applications, connections, roles, and organizations — onto its own, so the move is mostly exporting users, recreating your clients, and swapping the SDK. Auth0’s bulk user export carries no password hashes, so users set a new password (or continue with social login) unless you obtain bcrypt hashes from Auth0, which Idenplane can import. The payoff: no per-MAU pricing, full ownership of your identity data, and no vendor lock-in. New to the project? Start with Idenplane vs Auth0.

Before you begin

  • An Auth0 Management API token with read access to users, clients, and connections.
  • A host for Idenplane (Docker or Kubernetes) plus a PostgreSQL database.
  • The Idenplane admin API key, and the OAuth app credentials for any social connections.
  • A staging environment to validate login, MFA, and social flows before cutover.

Why migrate from Auth0?

$0/mo
No per-MAU charges
AGPL-3.0 open source; you pay only for your own infrastructure
Unlimited
Users, no paywall
No license limit on users; capacity depends on your hardware
Full data
ownership
Your servers, your data, your rules
No vendor
lock-in risk
Open source, self-hosted, forkable

Feature Mapping

Auth0 Idenplane Notes
Tenant Realm Same isolation concept
Application (SPA) Client (public) PKCE enforced
Application (Regular Web) Client (confidential) With client secret
Application (M2M) Client (service account) Client Credentials grant
Roles Roles Realm and client-level roles
Organizations Organizations B2B multi-tenancy
Social Connections Identity Providers OIDC / OAuth 2.0 brokering
Enterprise (SAML) SAML identity provider Configure the external IdP in the realm and register Idenplane as a service provider with it
Database Connections Local Users Default user store
Rules / Actions Plugins / Webhooks Event-driven extensions (no in-flow scripting)
Branding Realm Theming Custom login pages
Logs Events / Audit Logs Login + admin events

Step-by-Step Migration

1

Export Auth0 Users

Use the Auth0 Management API to export your users with their metadata. This bulk export does not include password hashes; see Auth0's documentation on exporting them.

# Export users via Auth0 Management API
curl -X POST "https://YOUR_DOMAIN.auth0.com/api/v2/jobs/users-exports" \
  -H "Authorization: Bearer ${MGMT_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "json",
    "fields": [
      {"name": "user_id"},
      {"name": "email"},
      {"name": "name"},
      {"name": "user_metadata"},
      {"name": "app_metadata"}
    ]
  }'
2

Deploy Idenplane

Start Idenplane and create your realm (the Auth0 importer needs an existing target realm).

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

# Create a realm matching your Auth0 tenant
curl -X POST "http://localhost:3000/admin/realms" \
  -H "x-admin-api-key: ${ADMIN_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-app",
    "displayName": "My Application"
  }'
3

Create OAuth Clients

Recreate your Auth0 Applications as Idenplane clients. Match client IDs where possible.

# Create a client for your SPA
curl -X POST "http://localhost:3000/admin/realms/my-app/clients" \
  -H "x-admin-api-key: ${ADMIN_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "clientId": "my-spa",
    "name": "My SPA",
    "clientType": "PUBLIC",
    "redirectUris": ["http://localhost:3000/callback"],
    "webOrigins": ["http://localhost:3000"]
  }'

# Create a client for your API
curl -X POST "http://localhost:3000/admin/realms/my-app/clients" \
  -H "x-admin-api-key: ${ADMIN_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "clientId": "my-api",
    "name": "My API",
    "clientType": "CONFIDENTIAL",
    "grantTypes": ["client_credentials"]
  }'
4

Import Users

Import your Auth0 export with the built-in Auth0 importer: it creates users, clients, roles and social connections in the target realm. Users that come with a bcrypt password_hash (from an Auth0 hash export) keep their password, rehashed to Argon2id at first sign-in; users without a hash set a new password (or use social login).

# Combine users, clients, roles and connections into one JSON file,
# preview, then import into the existing realm
idenplane migrate auth0 --file auth0-export.json --realm my-app --dry-run
idenplane migrate auth0 --file auth0-export.json --realm my-app

# Or via the Admin API
curl -X POST "http://localhost:3000/admin/migration/auth0" \
  -H "x-admin-api-key: ${ADMIN_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"data": '"$(cat auth0-export.json)"', "targetRealm": "my-app"}'
5

Migrate Social Connections

Recreate your Auth0 Social Connections as Idenplane Identity Providers (OIDC / OAuth 2.0 providers; Google, GitHub and Microsoft have built-in templates).

# Add Google as an Identity Provider
curl -X POST "http://localhost:3000/admin/realms/my-app/identity-providers" \
  -H "x-admin-api-key: ${ADMIN_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "alias": "google",
    "displayName": "Google",
    "providerType": "oidc",
    "enabled": true,
    "clientId": "your-google-client-id",
    "clientSecret": "your-google-client-secret",
    "issuer": "https://accounts.google.com",
    "authorizationUrl": "https://accounts.google.com/o/oauth2/v2/auth",
    "tokenUrl": "https://oauth2.googleapis.com/token",
    "userinfoUrl": "https://openidconnect.googleapis.com/v1/userinfo",
    "jwksUrl": "https://www.googleapis.com/oauth2/v3/certs",
    "trustEmail": true
  }'
6

Swap the SDK

Replace the Auth0 SDK with the Idenplane SDK in your application. The method names differ in places, so check each call.

// Before: Auth0 SDK
import { Auth0Client } from '@auth0/auth0-spa-js';
const auth0 = new Auth0Client({
  domain: 'your-tenant.auth0.com',
  clientId: 'my-spa',
  redirectUri: window.location.origin,
});

// After: Idenplane SDK
import { IdenplaneClient } from 'idenplane-sdk';
const idenplane = new IdenplaneClient({
  url: 'https://auth.example.com',
  realm: 'my-app',
  clientId: 'my-spa',
  redirectUri: window.location.origin + '/callback',
});

// Similar methods
await idenplane.login();
const user = await idenplane.fetchUserInfo();
await idenplane.logout();

Important Notes

  • Password hashes: Idenplane imports and verifies bcrypt hashes, but Auth0’s bulk user export does not include them (see Auth0’s documentation on exporting password hashes). Without them, users reset their password or use social login.
  • Social logins: Configure the same OAuth app credentials. With trustEmail on, a provider-verified email that matches an imported user links to that account; otherwise a new account is created (or the sign-in is refused when the provider is link-only).
  • Rules/Actions: Convert Auth0 Rules to Idenplane Plugins or Webhooks — webhooks and event-listener plugins react to auth events, and token-enrichment plugins can add claims.
  • Custom domains: Update your DNS to point your auth domain to your Idenplane instance.
  • Testing: Run Idenplane in parallel with Auth0 during migration. Test all flows before full cutover.