WP_Auth0_LoginManager
after a user has been authenticated successfully but before they have been logged into WordPress. It can be used to stop the login process if needed using wp_die()
or throwing an exception. You can see an example in the GitHub repository.
WP_Auth0_LoginManager
after a user has been authenticated successfully and logged into WordPress. It can be used to set specific meta values, send notifications, or ping other services. You can see an example in the GitHub repository.
WP_Auth0_Users
just after a WordPress user is successfully created. It can be used to change user values, set additional user metas, or trigger other new user actions. You can see an example in the GitHub repository.
$user_data
is the user data parsed from the Auth0 profile.$userinfo
is the Auth0 user profile.wp_insert_user()
function. You can see an example in the GitHub repository.
user_id
) and is used to override the default behavior with custom matching rules (for example, always match by email). You can see an example in the GitHub repository.
If the filter returns null, it will look up by email. To learn more, read Integrate with WordPress.
WP_Auth0_Email_Verification
to change the HTML rendered when a user who is logging in needs to verify their email before gaining access to the site. Note that this HTML is passed to wp_die()
where it is modified before being displayed (see the _default_wp_die_handler()
definition in core for more information). You can see an example in the GitHub repository.
WP_Auth0_LoginManager
to modify what connection is used for the auto-login process. The setting in wp-admin is pulled and then passed through this filter. You can see an example in the GitHub repository.
WP_Auth0_Routes
to alter the WP_User object that is JSON-encoded and returned to Auth0 during a user migration. You can see an example in the GitHub repository.
WP_Auth0_Users
when deciding whether a user should be created. The initial value passed in is TRUE
. If FALSE
is returned for any reason, registration will be rejected and the registering user will see an error message (WP_Auth0_UsersRepo::create()
). You can see an example in the GitHub repository.
wp-content/plugins/auth0/templates/auth0-login-form.php
. The standard Lock initiation JS looks for an ID attribute of auth0-login-form
to instantiate the login form so make sure that’s present or replace the wp-content/plugins/auth0/assets/js/lock-init.js
file with your own. You can see an example in the GitHub repository.
$options
array with your changes or additions. New fields must have a field callback, as shown below. You can see an example in the GitHub repository.
auth0_state_cookie_name
filter below for an example. You can see an example in the GitHub repository.
A <cookie-name> can be any US-ASCII characters except control characters (CTLs), spaces, or tabs. It also must not contain a separator character like the following: ( ) < > @ , ; : \ " / ? = { }.
To learn more about the Set-Cookie
HTTP response header, read Set-Cookie in MDN Web Docs.
/authorize
endpoint parameters as needed. The function must return a dictionary-type array of URL parameters. To learn more about how these parameters are used, read Authentication API Explorer: Login. You can see an example in the GitHub repository.
/authorize
URL before use. The function must return a valid URL as a string. To learn more about how this URL is used, read Authentication API Explorer: Login. You can see an example in the GitHub repository.
wp_die()
when there is an error during login. This filter does not affect the verify email content (see auth0_verify_email_page). You can see an example in the GitHub repository.
returnTo
URL when logging out of Auth0. You can see an example in the GitHub repository.
true
(default) to use the API, false
to use the . You can see an example in the GitHub repository.
max_age
URL parameter sent on the authorize URL. You can see an example in the GitHub repository.