OdysseyMomentum / Conduction

ID-Vault takes away the hassle of wallets and blockchain by providing a free and easy to implement OAuth interface and unlocking variable credentials, claims and proof. Ever implemented Facebook or Gmail? Then ID-Vault should be a breeze !
http://dev.id-vault.com/
0 stars 0 forks source link

User migration #19

Open rubenvdlinde opened 4 years ago

rubenvdlinde commented 4 years ago

When switching your user base to id-vault you will probably need to perform a mass user migration, this sounds more tricky then it is. But to do it right you want to take care of some crucial steps.

First we need to be aware that the creating users functionality handles most logic of figuring out whether or not a user should be created and so on based on a user's email address. That means that from a business logic point of view you can just make a script to iterate trough all your users, post them to the id-vault user endpoint and handle any or all requests.

So lets take a look at what might happen, you post a user to the user endpoint and one of the following thing happens. The email address is invalid, or not in use (an error is thrown). You should probably delete this account from your own system The email address is not currently claimed by an account You get an authorization token, and can continue normally The email address is currently claimed by an account You need to alert the user to migrate there account