AUTH0_ENV_MIGRATION_WS
to true
and AUTH0_ENV_MIGRATION_TOKEN
to a secure random string at least 16 digits long and without single quotes or backslashes.
{THE_WS_URL}
and replace that with your WordPress instance’s site URL, followed by /index.php?a0_action=migration-ws-login
. The site URL can be found in the Settings > General screen in wp-admin. You can test this by pasting the complete URL in your browser. You should see {"status":401,"error":"Unauthorized"}
.
{THE_WS_TOKEN}
and replace that with the token that appears under the User Migration Endpoints setting.
endpointUrl
set to your WordPress instance’s site URL (wp-admin > Settings > General > “Site URL” field), followed by /index.php?a0_action=
.migrationToken
set to the security token value seen in step 4 above.userNamespace
set to your Application name in Auth0 or any other value only including letters, numbers, and dashes.{THE_WS_URL}
and replace that with your WordPress instance’s site URL, followed by /index.php?a0_action=migration-ws-get-user
. The site URL can be found in the Settings > General screen in wp-admin. You can test this by pasting the complete URL in your browser. You should see {"status":401,"error":"Unauthorized"}
.
{THE_WS_TOKEN}
and replace that with the token that appears under the User Migration Endpoints setting.
{"status":401,"error":"Unauthorized"}
// or
{"status":403,"error":"Forbidden"}
If what you’re seeing is the home page or a 404, then the URL is incorrect. Look for your site URL under Settings > General > Site URL in the WordPress admin. Add /index.php?a0_action=migration-ws-login
to the end for the Login script and /index.php?a0_action=migration-ws-get-user
to the end for the Get User script.
request.post
call.endpointUrl
:callback(null, configuration);
If you’re sure the URLs are correct and are still having this issue, check with your host to make sure those URLs are not cached or restricted in any way.
callback(null);
to:
callback(wpUser.error);
Save the script, and try the connection again. You should see one of the following messages and be able to pinpoint the issue with the steps below. Once you’ve solved the issue, change the script back to what it was.
access_token:
migrationToken
:callback(null, configuration);
Authorization
header to be parsed. For help with server troubleshooting, read Apache 2.4 + PHP-FPM and Authorization headers on stackoverflow.com. To see how the token is retrieved, view the plugin code in the GitHub repository.
auth0|123
to auth0|Your-WP-Site-Name|123
. Adjust all other fields you need to follow the import schema. To learn more, read Bulk User Import Database Schema and Examples.