echo date(DateTime::ISO8601)
in PHP on your server and compare that, including seconds, to the current UTC time. If your server’s time is more than 60 seconds (the default leeway) off from UTC time, then you’ll need to set a longer leeway to account for your server’s clock skew. You can paste the below code in your theme’s functions.php
or anywhere else that would run it after the plugin loads and before the login hook runs:
email_verified
flag (some Enterprise connections will not include this) or to skip this validation for specific Social Connections, add the strategy for that Connection in the “Skip Strategies” field. This field is located below the Require Verified Email switch accessible via wp-admin > Auth0 > Settings > Advanced.
This field should only be used if necessary because it circumvents the security precautions recommended by Auth0.
{passwordlessMethod: 'code'}
to the “Extra Settings” field in the plugin settings’ Advanced tab.sms
to the Connections field in the plugin settings’ Advanced tab.
?wle
to the login URL. For example: http://yourdomain.com/wp-login.php?wle
.
Extra configuration
setting (or the extra_conf
attribute in the shortcode) and add this JSON {"mode":"signup" }
that will force the plugin to be shown in this mode.
my_forcelogin_whitelist
filter:
wp_safe_redirect()
before being performed. If you’re trying to redirect to a domain that is not your main domain, add that domain to the check using the core WordPress allowed_redirect_hosts
filter. To learn more, read apply_filters( ‘allowed_redirect_hosts’, string[] host ) on wordpress.org.
redirect_to
query parameter to the URL when you direct the user to the login page. The plugin will redirect the user to this URL after a successful login.
You can also use the Login redirection URL setting in the Auth0 plugin settings page. This will URL be used to redirect the user when the redirect_to
parameter is not provided.
Redirect after login:
setting.
redirect_to
attribute.
wp-login/php
page, shortcodes, or widgets). To learn more about these options, read Configure Login by Auth0. This will not affect the the login form on the Auth0-hosted Page.
There is also a field called “Extra Settings” on the Advanced tab that accepts a valid JSON object with all the settings you want to configure. This will override any changes made on the Appearance tab. To see all possible configuration options, read Lock Configuration Options.
External style sheets and JS files should be loaded in your theme using the wp_enqueue_scripts
hook for shortcodes/widgets and the login_enqueue_scripts
hook for wp-login.php
. To learn more, read do_action( 'wp_enqueue_scripts' )
on wordpress.org and do_action( 'login_enqueue_scripts' )
on wordpress.org.
Remember users session
setting on the plugin settings’ Advanced tab to allow sessions to remain live for up to 14 hours.
auth0_auth_scope
filter combined with the auth0_user_login
action to accomplish this.
wp-content/plugins
.social-login-with-auth0
folder out of the plugins folder to back up the contents.auth0
plugin folder to the plugins directory.