GithubHelp home page GithubHelp logo

migrate-auth0-users's Introduction

migrate-auth0-users

Demonstration of importing Auth0 users into WorkOS, including setting password hashes.

Usage

WORKOS_SECRET_KEY=sk_abc123 npx github:workos/migrate-auth0-users --help

Example output

% WORKOS_SECRET_KEY=sk_abc123 npx github:workos/migrate-auth0-users \
  --user-export dev-123abc.json \
  --password-export password-export.json
Need to install the following packages:
  github:workos/migrate-auth0-users
Ok to proceed? (y) y
Importing users from example-input.json
(1) [email protected] (WorkOS user_01HCYXV9R05ZE1J46YPME5Z4BY) already has a password set
(2) [email protected] (WorkOS user_01HCYXV9R15Q6PPYMA6F09M75A) already has a password set
(3) Imported user [email protected] as WorkOS User user_01HCYZ09NQHZ4X1ZRVZ3V09WWW
(4) Imported user [email protected] as WorkOS User user_01HCYZ09NSE9ABBQXTF1F43WKX
(5) Imported user [email protected] as WorkOS User user_01HCYZ09PXM1F4WHQS70X1TS6H
(6) Imported user [email protected] as WorkOS User user_01HCYZ09PRH8THC7ZEDYBEJ008
Done importing. 4 of 6 user records imported.

Input file format

Two export files from Auth0 must be given.

The first is passed via the --user-export flag and is obtained using the official Auth0 Import/Export extension. This tool expects that the export is created using the default fields which are added via the "Add default fields" button in the extension UI.

The second export file is passed via the --password-export flag and is obtained from Auth0 support by filing a ticket and requesting password hashes to be exported. Note that the script will exit with an error if any custom password hashes are present.

migrate-auth0-users's People

Contributors

dependabot[bot] avatar jstrutz avatar mthadley avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

truell20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.