Hi there,
I am trying to set up the automatic migration of our customers from a legacy DB (accessed through rest API) to Auth0 DB. I have followed the steps in this guide: Configure Automatic Migration from Your Database - Auth0 Docs but it isn’t working.
The logs show that the login script for the custom DB is getting called and no errors are being thrown yet I get a wrong username or password error on the universal login page and the user isn’t added.
Several questions:
-
Which connections should I be allowing for the app? I have tried allowing both the custom DB one and the default username-password Auth0 one, just the custom one, just the default one and none of these work.
-
At the end of the login script, if they are a valid user in legacy codebase, to add the user to the Auth0 db all I need to do is call the callback with null and then the user profile?
-
Do i need to change anything on the hosted login page to get this to work?
Thanks in advance for any help!