- Required parameters are missing when calling the Auth0 Authentication API Login endpoint.
- User opens an expired password reset link (when using the Classic Login experience).
- User navigates to a bookmarked login page and a Default Login Route is not specified.
Parameters
If you choose to configure a custom error page, the Authorization Server will return parameters appended to the URL as a query string.
Parameters presented vary depending on the error type and are specific to the request. For example, if the request which resulted in an error did not contain a
client_id, the Authorization Server will not return the client_id parameter.
Display a custom error page
If you want to display a custom error page, you have two options:- Redirect users to a custom error page using either the Auth0 Dashboard or the Auth0 Management API.
- Configure Auth0 to render a custom error page on your behalf via the Management API.
Redirect users to a custom error page using the Dashboard
Use the Dashboard to configure Auth0 to redirect users to a custom error page:- Navigate to Auth0 Dashboard > Tenant Settings.
- Locate the Error Pages section.
- Select the Redirect users to your own error page option.
- Enter the URL of the error page you would like your users to see, and select Save.
Redirect users to a custom error page using the Management API
Use the Update Tenant Settings endpoint. Replace the{mgmtApiAccessToken} placeholder value with your Management API , and update the value of the url field in the JSON body to point to the location of the error page.
Render a custom error page
When errors are shown as part of the Classic Login widget (such as an expired password reset link), an Auth0-hosted custom error page will not be rendered, even if configured.
{mgmtApiAccessToken} placeholder value with your Management API Access Token, and update the value of the html field in the JSON body to a string containing the HTML of your page.
You can use Liquid syntax to include the following variables:
{client_id}{connection}{lang}{error}{error_description}{tracking}
To prevent XSS vulnerabilities, sanitize your custom template using Liquid’s escape and strip_html filters.