Configuration options
Screens that use advanced rendering mode have the following configuration options:- Reference bundled assets for HTML tags that should be included in the
<head>tag - Filter your configurations based on defined conditions
- Provide context to your template
- Customize the Universal Login context object by specifying the optional transaction and configuration data
Reference your bundled assets
Advanced rendering mode allows you to add meta information, replace default page titles and favicons, and reference your bundled assets by defining HTML tags that are included in the<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.
Tag
Any HTML element valid for use in the<head> tag. Review MDN documentation for more details.
Content (optional)
The content between the opening and closing tags.Content is limited to 250 characters. When using a custom<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.
Attributes
Up to 10 valid HTML attributes can be included in a given tag.Dynamic segments for URL type attributes
URL attributes likesrc 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:
Always provide integrity SHAs when referencing Javascript assets for your ACUL setup; review the MDN documentation on SRI for details on setting up subresource integrity support for your assets. Dynamic segments allow you to design an array of SHAs for up to ten possible permutations of the resolved URL.
Filter your ACUL customizations by Client or Organization information
By default, your ACUL customizations display whenever a screen is rendered for your tenant. Thefilter 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 usemetadata: { region: "APAC" }to target all clients in the APAC region.
Example
If you only want your advanced customizations to be used for clients with the IDapp_123 or for clients that have premium: true in their metadata, insert the code below:
Template context
Theuse_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.
Remove the default head tags
The following HTML tags are added by default to the advanced rendering mode page template and can be disabled by setting the value ofdefault_head_tags_disabled to true.
<title> tag and robots <meta> tag when removing the default head tags by including them in head_tags.
Customize the Universal Login context object
Optional data can be included the Context by adding it to thecontext_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:
Manage untrusted data with the untrustedData screen property
TheuntrustedData 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:
- untrustedData parameters
- untrustedData properties
| 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) |
Example calls
Below are examples of how to use the and Auth0 Terraform Provider to configure ACUL screens.Management API example
Below is an example of a direct call to the Management API to configure the Login ID screen. To disable advanced rendering mode, send aPATCH 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 the Management API
Auth0 Terraform provider example
Below is an example of an Auth0 Terraform call to configure the Login ID screen.Call a Terraform Provider
Call a Terraform Provider