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
- 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.
- 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) answersSUCCESSfor a right password (and an MFA state if the user enrolled factors, which also means the password was right). - Cognito:
AdminInitiateAuthwithADMIN_USER_PASSWORD_AUTHon the user pool's app client. - Firebase: the Identity Toolkit's
accounts:signInWithPassword.
- Okta: the Authentication API (
On success, answer {"user": {"email": …, "email_verified": …, "given_name": …, "family_name": …}} from what the old system says about them. On anything else, answer {}.
- 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
- Point the apps at Nod. Each person's first sign-in moves them (
user.migratedin the security log). - 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
- Second factors (authenticator apps, SMS): people set up an authenticator app or a passkey here.
- Social and enterprise sign-ins: they need no password, so they move by connecting the same provider (people are linked by the provider's own id for them, as in the old system).
- Sessions: everyone signs in once more, which is what moves them.