Test mode: paid plans aren't on sale yet, so nothing is charged. Every plan's limits apply.

← Docs

Migrating from Okta, Amazon Cognito or Firebase Auth

None of these hands out password hashes, so people can't be imported with their passwords as from Auth0 or Keycloak. Instead they move as they sign in: Nod's password-migration hook asks the old system whether the password is right, once per person, and from then on they're Nod's.

The move

  1. Set up the realm and the apps as you would for any new realm: clients with the same client ids, APIs, roles, and the outside providers (Google, Microsoft, SAML IdPs) as connections.
  2. Write the hook, a small HTTPS endpoint of yours that checks the signature Nod sends, then asks the old system to sign the person in with the username and password it was given:
    • Okta: the Authentication API (POST /api/v1/authn) answers SUCCESS for a right password (and an MFA state if the user enrolled factors, which also means the password was right).
    • Cognito: AdminInitiateAuth with ADMIN_USER_PASSWORD_AUTH on the user pool's app client.
    • Firebase: the Identity Toolkit's accounts:signInWithPassword.

On success, answer {"user": {"email": …, "email_verified": …, "given_name": …, "family_name": …}} from what the old system says about them. On anything else, answer {}.

  1. Turn it on, with passwords allowed in the realm:

sh nod realm set acme --passwords on nod hook set acme https://migrate.acme.example/check --trigger password-migration

  1. Point the apps at Nod. Each person's first sign-in moves them (user.migrated in the security log).
  2. Mop up. After a while, export who's left from the old system and invite them (or let them reset their password), then turn the hook off: nod hook remove acme --trigger password-migration. While it's on, a username Nod doesn't have takes a call to your hook longer to refuse.

What doesn't move