<head>
tag<head>
of the page template. You can define up to 25 tags per screen, all of which are defined as an array of JSON objects.
<head>
tag. Review MDN documentation for more details.
<title>
tag:
content
attribute allows access to the variables below; they are resolved on the server before the page template is returned to the browser.
src
and href
include dynamic segments that allow you to segment bundles into packages based on attributes like client, organization, or locale.
Dynamic segments have access to the following context data:
filter
object allows you to define specific conditions under which your custom UI should be used.
To use the filter object, specify the match_type
in conjunction with includes_any
or excludes_any
:
match_type
(Required): This tells the system how to interpret your rules.
includes_any
: Use your custom UI if any of the conditions you define are met.excludes_any
: Do not use your custom UI if any of the conditions you define are met.id
: A specific client or organization ID.metadata
: A key-value pair from the client’s or organization’s metadata. For example, you can use metadata: { region: "APAC" }
to target all clients in the APAC region.app_123
or for clients that have premium: true
in their metadata, insert the code below:
use_page_template
configuration is optional and defaults to false
. If you set a custom page template for your tenant, changing the setting to true
activates it.
Because the default Auth0 UI is not being used, the {%- auth0:head -%}
liquid tag is replaced by your custom defined head tags when set to true
and the {%- auth0:widget -%}
renders nothing. Everything else in the page template is rendered, including any JS or CSS used to customize the default widget.
Go to Branding > Universal Login > Customizations to use custom template contexts.
default_head_tags_disabled
to true.
<title>
tag and robots <meta>
tag when removing the default head tags by including them in head_tags
.
context_configuration
array. Not all optional data is available on every screen; if the requested data is not available, the API returns an error. Refer to the individual screen pages for information about what data is available for each screen.
Referencing entity.metadata
or authorization_parameters
without a specific key throws an error. For security reasons, full authorization parameters or metadata objects are not exposed.
Below are the available optional context data:
untrustedData
screen property is available to handle potentially unsafe information submitted by an end user, as well as if certain parameters and custom query parameters are passed to the /authorize
call.
Below are the unstrustedData
properties and parameters:
Interface | Type | Required | Description |
---|---|---|---|
untrustedData.submittedFormData | object | No | • Data is available on a case-by-case basis. • Sensitive data like password is not included. • Data from custom form fields like custom prompts is included. • This does not appear on every screen. |
untrustedData.authorizationParams[keyName] | object | No | The entire object cannot be exposed; each key must be explicitly added to the context. The following keys are available: • authorizationParams.login_hint (string)• authorizationParams.screen_hint (string)• authorizationParams.ui_locales (string)• authorization_params.ext-someParam (string) |
PATCH
call to the same endpoint, replacing "rendering_mode": "advanced"
with "rendering_mode": "standard".
This will revert to the default rendering behavior, removing any previously set context_configuration
and head_tags
.
Call the Management API
Call a Terraform Provider