Why a checklist for a sign-in move
Moving users to Keycloak is rarely hard in any one step. Exports are documented, Keycloak imports users from JSON, and clients and identity providers are a form in the admin console. Moves go wrong in the gaps between the steps: an app nobody listed, a redirect URI that still points at the old system, a custom claim an API depends on, users who get a set-password email they did not expect.
This checklist lists the steps in order, from inventory to rollback, and changes with the system you are moving from. Pick the source, tick each item as you finish it, and copy the list as Markdown into your own tracker. Nothing is stored or sent.
The seven phases
| Phase | What it settles |
|---|---|
| Inventory | What you have: users, apps, providers, custom data, MFA and custom login code |
| Export | How the data leaves the old system, and where every copy is |
| Map | How each part becomes a Keycloak realm, client, identity provider, attribute or group |
| Dry run on a staging copy | That the import works and every app signs in, before anything changes for users |
| User communication | What users hear before, on the day and after |
| Cut-over | The window, the final export and import, the switch of each app |
| Rollback | How to go back, who decides, and what would be lost |
Inventory
Start by counting. The number of users matters less than the number of active ones: people who signed in during the last months are the ones who will notice the move. Count both, and keep the active count for planning emails and support.
Then list every application and API that relies on the old system, with its redirect URIs, logout URIs, allowed origins and the token claims it reads. This list becomes your clients in Keycloak, and it is the list most often incomplete. Ask each team that owns an app, and check the old system’s own list of applications.
List the identity providers too: Google, Apple, Microsoft, a customer’s SAML or OIDC provider. Each needs a Keycloak identity provider, and each provider needs the new redirect URI registered on its side. Some providers take days to approve a change, so start early.
Finally, list custom login code. Auth0 Actions and Rules, Cognito Lambda triggers, Azure AD B2C custom policies and Firebase blocking functions all run during sign-in. None of them move. Write down what each does, and decide its Keycloak counterpart: a required action, a mapper, an authentication flow step, or a change in the app.
Export
Each source has its own export, and the checklist shows the one for yours.
| Source | Export |
|---|---|
| Auth0 | A user export job in JSON format |
| Okta | The List Users API, GET /api/v1/users |
| Amazon Cognito | aws cognito-idp list-users, and groups per user |
| Azure AD B2C, Entra External ID | Microsoft Graph users with identities and extension attributes selected |
| Firebase Authentication | firebase auth:export with --format=json |
| Keycloak you run, Red Hat SSO, Red Hat build of Keycloak | kc.sh export with users, or the RH-SSO export, from a stopped server or a copy of the database |
| Another Keycloak host | A full export with users from the host, not the admin console’s partial export |
Treat every export as a secret. It holds personal data, and Keycloak and Firebase exports hold password hashes too. Keep it encrypted, never send it by email or chat, and write down where each copy is, so you can delete all of them later.
Map
Mapping turns the export into Keycloak’s shape. For users, the converter tools do most of it: Auth0, Firebase, Cognito, Okta and Azure AD B2C. From another Keycloak, the export is already in Keycloak’s format.
Three decisions are yours. First, the username: the email address is the usual choice, and it keeps sign-in the same for users. Second, the attributes: declare each one in the realm’s user profile, or Keycloak drops it. Third, the token claims: each app reads some claims, and each needs a mapper in Keycloak that produces it under the same name.
For sources that cannot move passwords, set up the realm’s SMTP connection during mapping, not at cut-over. The set-password emails depend on it.
Dry run on a staging copy
Import into a staging realm with the same settings as production. Compare the user count, the groups and a few attributes with the source. Then sign in through each application with a test user: a password user, a social user and, if you have them, an enterprise user.
For a source without usable password hashes, send yourself a set-password email and finish it, so you see what users will see. For another Keycloak, sign in with an existing password: if it works, the hashes moved.
Check the tokens too. The JWT decoder shows the claims each app receives, and the token roles viewer shows the roles.
User communication
Users take a move well when it does not surprise them. Write three emails: an announcement a week or two before, an email on the day, and a reminder for those who have not signed in. The migration email templates give you text to start from.
Say plainly what changes: a new password by email link if passwords do not move, setting up the authenticator app again if they used one, and signing in once more because sessions end. Tell your own support team the same, with answers ready.
Cut-over and rollback
- Pick a quiet window and freeze changes in the old system.
- Lower the DNS record’s TTL a day ahead if the sign-in hostname moves.
- Run a final export and import it, so late sign-ups and changes come along.
- Switch each app to the new issuer, client id and secret.
- Send set-password emails in batches, if passwords do not move.
- Watch sign-ins and errors for the first hours.
Rollback is part of the plan, not an afterthought. Keep the old system running and unchanged until you sign the move off. Write down how each app switches back, agree who decides, and by when. Know what is lost on the way back: sign-ups and password changes made after the switch.
When the move is signed off, delete every copy of the export, and turn off the old system’s sign-in once no app points at it any more.
Using the list with a team
A sign-in move touches several teams: the people who run identity today, each application’s owners, support, and whoever writes to customers. Give each item an owner before you start. The Markdown copy pastes into most trackers as a task list, so each line can carry a name and a date.
Review the list at three points: after the inventory, when the scope is known; after the dry run, when the plan is proven; and the day before cut-over, when every item above Cut-over should be ticked. An unticked item at that last review is a reason to move the date, not to hope.
| Who | Usually owns |
|---|---|
| Identity team | Inventory, export, mapping, the dry run import |
| Application owners | Client settings, token claims, testing their app |
| Support | Answers to user questions, the reminder email |
| Communications | The announcement and the email on the day |
How long it takes
It depends: on the number of applications and identity providers, on custom login code, on whether passwords move, on how quickly providers approve new redirect URIs, and on how much notice your users need. We do not give a number without seeing what you run. The checklist helps you see the size of the job before you set a date.
On Premium and Enterprise, our team does the move with you within the plan’s 10 service hours a month. On Starter, you work through this list with our tools and guides, and ask us in writing. Very large moves are scoped as Custom through the contact form. Moving to RealmDeploy has a page for each source.