Disable social connection AND not create user? Trying to prevent user duplication of custom database migrated user

@markd

That’s the route I decided we’re going to go with. Do you know much about cryptography? Having a hard time converting our database hash to the string required by the bulk import. We’re using a pdkdf2 function which uses a keylen of 32 and has 29000 iterations.

So given a hash $pbkdf2-sha256$29000$RmiN0VqL0fo/59xbS6l1Dg$pWJJ18l.JrqbHG6XPfUu6w4AUTzpc8kz/74yV7j/zQg

I wrote something to convert it to $pbkdf2-sha256$i=29000,l=32$RmiN0VqL0fo/59xbS6l1Dg$pWJJ18l.JrqbHG6XPfUu6w4AUTzpc8kz/74yV7j/zQg

This succeeds in the import but when I try logging in as that user given the password, it throws a 'wrong email or password` error, so I’m thinking my hash conversion is wrong? I see the user in the user management screen also :confused:

Thanks again!

Edit I got it working w/ the bulk importing. The pbkdf2 function im using from python’s passlib encoded it a little differently than required so I decoded it doing what they do, and re-encoded to auth0’s liking and it’s working now