Error: Unable to save and publish login.head_tags must contain at least one script tag

Hi,

I am trying to migrate my classic login page to universal page with custom templates.
I have pushed a template, I can retrieve it and I also updated it.

However when i try to save and publish via the UI the custom login screen it tells me I need to have head tags.

What kind of head tags do we need? I just want to style the page.

Hi @alexander.mcleanjane,

Welcome to the Auth0 Community!

Our documentation on Customize Universal Login Page Templates specifies a few Page template requirements:

auth0:widget Contains HTML for the prompt displayed on every page of the login flow, such as the Login page or Reset Password page
auth0:head Contains the tags required for rendering the prompt

You can also check the examples within the documentation, but the simplest way to include head tags would be:

<head>
    {%- auth0:head -%}
</head>

I hope this helps!

Thanks,

Remus

I’m getting the same error, but it asks for a scrip tag.
Universal Login> Customize authentication screens > reset-password

Hey thanks, its sorted, but I just copy pasted some bogus content:

<script type="text/javascript">window.universal_login_context = {...};</script>
<script src="https://cdn.sass.app/bundle.js" defer></script>

I just wanted to know what are the expectations there.

I do have the widgets present and its working now, its just not straight forward what is supposed ot be added in that part (branding > universal login > login/login > head tags)

Hi @andres.moreno and @alexander.mcleanjane,

For the mandatory head tags for Advanced Customization, this is intended because of how this feature works. The Customize authentication screens section in Universal Login is the specific section to set ACUL configuration, which is intended for having full control over the UI. For such cases you will need to create your own client-side frontend application for the desired prompt/screen and set the script to fetch the bundle assets in the head tags. This is why, for Advanced Customization, head tags are required. I’ll share here the documentation of the Advanced Customization feature for a more in-depth understanding.

Thanks,

Remus

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.