Migrating from Auth0
Most of an Auth0 tenant maps directly:
| Auth0 | Nod |
|---|---|
| Tenant | Realm (nod realm create) |
| Application (Regular Web, SPA, Native) | Client (--confidential, or public) |
| Application (Machine to Machine) | Machine client (--machine) |
| API (audience, permissions) | API (nod api register, identifier = the old audience) and its scopes |
| Social and enterprise connections (OIDC, GitHub) | Connections (nod connection add, --github) |
| Users | Users (nod import auth0) |
audience parameter | resource (RFC 8707) |
| Auth0 FGA | Nod FGA (the same modeling language) |
| Universal Login | Nod's sign-in page (passkeys first) |
Users, with their passwords
- In Auth0, export users with the User Import / Export extension or the Management API's export job, as JSON or NDJSON. To keep passwords, request the password hashes from Auth0 support: they are bcrypt, and arrive in the export as
password_hashorcustom_password_hash. - Allow passwords in the realm, then import:
nod realm set acme --passwords on
nod import auth0 acme users.ndjson
# 1240 imported (1198 with their password), 0 already here, 2 failed
What happens to each user:
- Username: their Auth0
username, or their email's local part, made unique in the realm. - Email: kept, with Auth0's
email_verified. - Profile: the standard claims (
given_name,family_name,middle_name,nickname,picture(https only),website,gender,birthdate,zoneinfo,locale) are kept. - Metadata:
user_metadataandapp_metadataare kept as they are, within Nod's limits (16 KiB of JSON each; keys without.or a leading$). A record over them is refused and reported, like any other bad record. - Blocked users (
"blocked": true) stay blocked. - **Their Auth0
user_id** is linked as an outside identity (issuerauth0-import), so importing the same file again changes nothing and you can still map old ids to new ones. - Their password still works. Nod verifies the bcrypt hash at their first sign-in and replaces it with Argon2id.
Records that don't validate are reported and skipped, and leave nothing behind.
Leaving, or moving realms
nod export REALM > users.ndjson writes every user in the same format, with Nod's id as user_id and outside identities under identities. Import it into another realm or installation with nod import auth0. Add --with-password-hashes to keep passwords. The hashes are Argon2id, in password_hash: Nod imports them as they are. Auth0 takes Argon2 only as custom_password_hash ({"algorithm": "argon2", "hash": {"value": …}}), so move them there for Auth0. The file then holds secrets, so treat it like a database backup.
Apps
- Re-register each application as a client: same redirect URIs, and post-logout URIs. Point its OpenID Connect library at the realm's issuer (
https://auth.example.com/acme) with the new client id and secret. Nothing else changes if it uses standard discovery. - APIs: register each API with its old audience as the identifier, so tokens'
audstays the same. Machine clients ask withresource=instead ofaudience=. - User ids change from
auth0|…to Nod's ULIDs. Before switching apps over, map stored ids using theauth0-importlink: the management API returns each user'sexternalidentities.
What isn't there yet
SMS and push (Guardian) second factors. Actions run as hooks: Nod calls your endpoint, signed, at each trigger (post-login, pre-registration, credentials-exchange, post-change-password, password-migration) instead of running your code itself; an Action that reads event.user.app_metadata reads user.app_metadata in the hook's body. See Hooks and ROADMAP.md.