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

Latest commit

 

History

History
26 lines (19 loc) · 1.32 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.32 KB

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.