Skip to content

User migration - Authentication Module 2.0 #3450

Open
5 of 9 issues completed
serverpod/serverpod_docs
#585

Description

@tp

We want to support user migration from serverpod_auth into the new structure.

As the new structure is more modular, we need to handle the profile info (serverpod_auth_profile) optionally, as well as support for each authentication mechanism (email, social, Firebase).

Since every existing feature is supported by some combination of modules in the new world, there should be a 100% data transfer.

For now the idea would be to import the data in the new system, but still leave it in the old one as well, so existing endpoints there continue to work.

As migrations can not happen “at once”, we want to support migrating on “first use” through the new system, e.g. when a user attempts to log in via email/password, we’d first check the new system whether the user is known, and if not, try importing one from the old system.

To also migrate accounts which do not have active use, we want to provide a Future-call which runs in the background and migrates batches of accounts.
Here it is to be checked whether any of the old password storage configurations will cause issues in fully automatically migrating (as the hashing function changed and might be dependent on runtime configuration). In that case we might need to import some of those legacy users (which did not see any usage in the new system) without their email password, and thus force them into a reset later on.

Once every user has been migrated (actively or through the background job) and all clients have been updated to use the new functions, the developer can remove the old serverpod_auth module from their project.

Sub-issues

Sub-issues

5 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. self-assigned this
    on Apr 22, 2025
  2. added
    area: authentication
    on Apr 25, 2025
  3. changed the title [-]Finalize user migration[/-] [+]Implement user migration[/+] on May 5, 2025
  4. moved this to Later 🥳 in Serverpod Frameworkson Jun 16, 2025
  5. 22 remaining items

  6. moved this from Backlog 🗂️ to Planned 🔭 in Serverpod Frameworkson Nov 14, 2025
  7. moved this from Planned 🔭 to Next Up 🎯 in Serverpod Frameworkson Dec 19, 2025
  8. self-assigned this
    on Mar 9, 2026
  9. moved this from Next Up 🎯 to Done 🚀 in Serverpod Frameworkson Jun 9, 2026
  10. moved this from Done 🚀 to Inbox 📫 in Serverpod Frameworkson Jun 9, 2026
  11. moved this from Inbox 📫 to Backlog 🗂️ in Serverpod Frameworkson Jun 9, 2026
  12. moved this from Backlog 🗂️ to Planned 🔭 in Serverpod Frameworkson Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authentication

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions