Hi there,
we have set up a custom database and enabled the “import users to auth0 functionality”.
However we run into the issue of some users want to reset their password before they are migrated. The user can request a password change with no problems. He will receive an email and can set a new password. The logs show “success change password request”, followed by “success change password”. However the user isn’t created in auth0 and the password in the custom database hasn’t changed either.
Our login script retrieves a user like this:
{
"user_id": "00001",
"user_name": "fnord@user.com",
"email": "fnord@user.com",
"email_verified": "TRUE"
}
And thise one is from getUser:
{
"user_id": "00001",
"user_name": "fnord@user.com",
"email": "fnord@user.com",
"email_verified": "TRUE"
}
This is the log for the successful reset-request:
{ "date": "2018-11-01T12:02:41.488Z", "type": "scp", "description": "You can now login to the application with the new password.", "connection": "migrationCon", "connection_id": "con_000001", "client_id": "UltraSecretClientId", "client_name": "ClientName", "ip": "111.111.111.111", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36", "details": { "title": "Change Password", "email": "fnord@user.com", "body": { "_csrf": "scnrmfg", "ticket": "SomeTicketFoobar", "email": "fnord@user.com", "newPassword": "*****", "confirmNewPassword": "*****" }, "query": { "email": "fnord@user.com", "username": null, "newPassword": null, "tenant": "my-tenant", "client_id": "UltraSecretClientId", "connection": "migrationCon", "resultUrl": "", "includeEmailInRedirect": true } }, "user_id": "", "user_name": "fnord@user.com", "strategy": "auth0", "strategy_type": "database", "log_id": "00000000000000000000000000000000002" }
And this is the following reset successful:
{
"date": "2018-11-01T12:02:41.488Z",
"type": "scp",
"description": "You can now login to the application with the new password.",
"connection": "migrationCon",
"connection_id": "con_000001",
"client_id": "UltraSecretClientId",
"client_name": "ClientName",
"ip": "111.111.111.111",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"details": {
"title": "Change Password",
"email": "fnord@user.com",
"body": {
"_csrf": "scnrmfg",
"ticket": "SomeTicket",
"email": "fnord@user.com",
"newPassword": "*****",
"confirmNewPassword": "*****"
},
"query": {
"email": "fnord@user.com",
"username": null,
"newPassword": null,
"tenant": "my-tenant",
"client_id": "UltraSecretClientId",
"connection": "migrationCon",
"resultUrl": "",
"includeEmailInRedirect": true
}
},
"user_id": "",
"user_name": "fnord@user.com",
"strategy": "auth0",
"strategy_type": "database",
"log_id": "00000000000000000000000000000000002"
}
Shouldn’t it be possible to migrate users on a password-reset from a custom database? Am I missing something?