Repository navigation
Description
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
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsPlanned 🔭
Activity
[-]Finalize user migration[/-][+]Implement user migration[/+]Create new module `serverpod_auth_migration`
22 remaining items
serverpod_authtoserverpod_auth_email[_account]#3663