Skip to content
Migrate

Migrate from Firebase Authentication to Keycloak

Move your Firebase project’s users to upstream Keycloak on a dedicated cluster in the region you choose. Users, custom claims and social logins come along from auth:export; passwords are set again by email link, because Keycloak cannot verify Firebase’s scrypt hashes yet.

Vendor facts checked on · Sources

The short answer

Users, their verified flags, custom claims and social providers move from the file firebase auth:export writes. Your apps switch from Firebase ID tokens to Keycloak tokens. Password users set a new password by email link, and second factors are enrolled again. You test everything on a staging copy first.

What moves

What moves from Firebase Authentication, and what does not

Re-created means we build it again in your realm from your inventory; it does not come out of an export.

WhatIn the moveHow
Users and profile fieldsMovesEmail, verified flag, display name, disabled, created date.
Custom claimsMovesAs user attributes, or as groups for the claim you name.
Firebase uidMovesKept as an attribute; Keycloak gives each user a new id.
PasswordsDoes not moveModified scrypt hashes cannot be verified by Keycloak; users set a new password by email link.
Second factors (TOTP, SMS)Does not moveThe export holds no TOTP secret; users enroll again.
Phone sign-inDoes not moveKeycloak has no built-in SMS sign-in.
Social providersRe-createdRe-created as identity providers; users re-link by email.
Apps and security rulesRe-createdApps become clients; rules that read auth claims read Keycloak tokens.
Blocking functionsDoes not moveRewritten as required actions, mappers or app code.
Active sessionsDoes not moveEveryone signs in once after the switch.
Branded sign-in pagesDoes not moveClusters run Keycloak’s own themes. Custom themes are not supported yet.
Passwords

Passwords are set again by email link

Firebase exports password hashes, made with its own modified scrypt. Keycloak ships hash providers for Argon2 and the PBKDF2 family, and none for Firebase’s scrypt, so the hashes cannot be verified and we do not import them.

Firebase users who sign in with a password set a new one after the move. We import them with Keycloak’s Update Password required action, and Keycloak emails each of them a link to set a new password (the execute-actions email). The link opens Keycloak’s own page and works for as long as you choose.

Users who sign in with Google, Microsoft or another identity provider do not need a password. Once the same provider is set up in your realm, their first sign-in finds their account by email and asks them to confirm the link.

We are evaluating an scrypt hash provider for our clusters. It is not available, and we make no promise of a date.

Getting the data out

The export

  1. Run firebase auth:export users.json --format=json.
  2. List the providers enabled in the project, and the custom claims your apps read.
  3. List the apps, and every place that verifies Firebase ID tokens.

Treat the export as a secret: keep it encrypted, never send it by email or chat, and delete every copy when the move is done.

The plan

Moving from Firebase Authentication, step by step

  1. 1

    Export

    Run firebase auth:export in JSON format. List the sign-in providers, the custom claims your apps and rules read, and every service that verifies Firebase ID tokens.

  2. 2

    Map

    Convert the file with the Firebase converter: claims as attributes or groups, the uid as firebase_uid, and Update Password for password users. Re-create the providers in Keycloak and add mappers for the claims apps read.

  3. 3

    Dry run on a staging copy

    Import into a staging realm. Sign in from each app with a password user and a social user, and check that your backend accepts Keycloak tokens and finds users by firebase_uid.

  4. 4

    Tell your users

    Announce the date, the new password by email link, and that phone-only sign-in changes if you used it.

  5. 5

    Cut over

    Stop sign-ups, export again, import, release the app versions that use Keycloak, and send the set-password emails in batches.

  6. 6

    Keep a way back

    Keep the Firebase project’s authentication unchanged until you sign the move off. Mobile apps need a released version that can switch back.

How long it takes

It depends, and on what

We do not give a length without seeing what you run. These are the things that set it.

  • How many mobile app releases the switch needs, and app store review times
  • How many services verify Firebase ID tokens today
  • How many users sign in by phone only, who need another way in
  • How many applications sign users in, and how many redirect URIs and token claims each needs
  • How many social and enterprise identity providers you use, and how quickly each approves a new redirect URI
  • How much notice your users need before the switch
  • How many people on your side test the dry run, and when
Who does the work

What each plan includes for a move

Support is in writing, through the dashboard and the contact form. There are no calls and no demos.

Starter

You move, with our tools and guides

We
  • Your cluster, ready before you import
  • Free converters, a readiness checklist and email templates
  • A guide for your source in the docs
  • Answers in writing, first response the next business day
You
  • Export from your current system
  • Convert and import into a second realm as a dry run (Starter has two)
  • Write to your users and switch your apps
Premium and Enterprise

We do the move with you, in the plan’s service hours

We
  • Plan the move with you from your inventory
  • Convert users and re-create clients and identity providers
  • Import into a staging copy and fix what the dry run finds
  • Import into your cluster at cut-over and watch the first hours
  • Uses the plan’s 10 service hours a month
You
  • Export from your current system and hand it over encrypted
  • Test the dry run with your own apps
  • Send the emails to your users and switch your apps
Custom

Very large moves, scoped with you

We
  • Many realms, very many users, or a long period with both systems running
  • Scope, sizing and price agreed in writing
You
  • Tell us what you run through the contact form

Prices and the service hours each plan includes are on the pricing page. A move larger than the plan’s hours is scoped with you as Custom.

Questions

About moving from Firebase Authentication

Can my Firebase users keep their passwords?

Not today. Firebase uses a modified scrypt and Keycloak ships no provider for it, so users set a new password by email link. We are evaluating an scrypt provider, with no date.

How do I export users from Firebase?

With firebase auth:export users.json --format=json. The JSON keeps providers and custom claims whole.

What happens to custom claims?

They become Keycloak attributes, and the claim you name becomes groups. Mappers put them back into tokens.

Do Google and Apple users need a new password?

No. They sign in with the same provider and confirm the link to their account once.

What about users who sign in by phone?

Keycloak has no built-in SMS sign-in. Ask those users for an email address before the move, or plan another sign-in method.

Do my mobile apps need changes?

Yes. They switch from the Firebase Auth SDK to OpenID Connect against Keycloak, usually with an AppAuth library and PKCE.

How long does a move from Firebase take?

It depends on app releases, the services that verify tokens and your users’ notice period. We do not give a number without seeing what you run.

Who does the work?

On Premium and Enterprise we do the move with you, within the plan’s 10 service hours a month. On Starter you move with our free tools and guides.

Sources

Where the facts on this page come from

Read on 25 November 2026. Vendors change their products: if one of these has, tell us through the contact form and we will correct this page.

  1. Firebase: CLI auth:import and auth:export (modified scrypt)
  2. Google Cloud: Identity Platform MfaEnrollment (TotpInfo has no fields)
  3. Firebase: UserRecord reference

Ready to move?

Order a cluster, or write to us first about what you run today.