How to serve static files from custom domain for Universal Login page

Hi Team,

I spent many hours reading the documentation and the community but not able to find a way to serve static files as well from our own domain.

Please see the attached image for reference.

Hi @muthu.krishnan,

Welcome to the Auth0 Community!

Custom login pages must have CSS customization done inline since hosting specific assets is not possible at the moment.

For Classic Universal login:

The Classic Universal Login is an Auth0-hosted login experience that can be customized using Javascript.

Using the Auth0 Dashboard, you can configure basic customization options that apply to all login pages or modify the HTML template for advanced customizations.

If you choose this implementation, you can manage your page content using a version control system of your choice.

For significant changes, you can use the Custom Login Form template with the Auth0.js SDK. This approach allows you to modify the style and layout of the login page. However, all CSS customizations must be inline, as hosting external CSS files in your Auth0 tenant is not supported.

Please refer to our Customize Classic Login Pages documentation.

For New Universal Login:

The New Universal Login can be customized using a Liquid template to define content displayed around Universal Login prompts, such as the login box or MFA challenges. Since the same page template is used for all login flow pages, this method ensures a consistent and branded user experience.

However, there are some limitations:

  • CSS class names: These change with each Auth0 project build, meaning custom CSS targeting these classes may break.
  • HTML structure: The structure of Universal Login pages is subject to change, so avoid customizations dependent on it.
  • To prevent disruptions, we recommend minimizing reliance on HTML structure and using supported methods for customization.

For further guidance, refer to the following documentation:

Thanks,
Rueben

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