Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

ETL script to transfer user credentials from Permanent to FusionAuth

License

Notifications You must be signed in to change notification settings

PermanentOrg/migrate-permanent-fusionauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

migrate-permanent-fusionauth

TypeScript GPLv3 license No Maintenance Intended

This is a one-off ETL script for migrating user credentials from the Permanent.org application database to FusionAuth, an authentication vendor.

It connects directly to the Permanent MySQL database, and knows the relevant parts of the database schema at the time it was written.

After extracting the data, it transforms it into the FusionAuth user import schema. This includes spliting the bcrypt hash into the fields FusionAuth expects, as the FusionAuth user import endpoint cannot parse bcrypt hash strings.

Finally, it loads the data into FusionAuth using their bulk user import API.

Usage

Copy .env.template to .env, set the values, and run npm run start.

About

ETL script to transfer user credentials from Permanent to FusionAuth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published