Before you start
You need:
- An Auth0 development tenant configured with Universal Login and custom domain.
- Enable Identifier First Authentication on your tenant to render the ACUL Login ID screen.
- A development application or an Auth0 SDK sample application on
localhost
for Auth0 authentication. - A database connection to authenticate users.
- An Auth0 ACUL sample application to render the ACUL screens.
Advanced Customization for Universal Login is currently in Early Access. To learn more about Auth0 release stages, read Product Release Stages.
Step 1. Install the Auth0 ACUL sample application
Clone the Auth0 ACUL sample application, and then change directory to theauth0-acul-samples
folder to install the application.
Step 2. Import and serve locally the screen assets
ACUL requires the screen assets to be hosted on a public URL. For this quickstart, the Login ID screen assets are served fromlocalhost
.
The
npm run build
command runs the ACUL sample application and creates the local assets.For example:- dist/index.html 1.24 kB │ gzip: 0.60 kB
- dist/assets/shared/style.D3MiusWE.css 25.43 kB │ gzip: 5.29 kB
- dist/assets/main.7v4nvq47.js 0.83 kB │ gzip: 0.48 kB │ map: 0.10 kB
- dist/assets/login-id/index.CvgpuTUC.js 4.99 kB │ gzip: 2.03 kB │ map: 17.96 kB
- dist/assets/shared/common.NFkCHmeC.js 38.45 kB │ gzip: 13.62 kB │ map: 94.57 kB
- dist/assets/shared/vendor.DT6wNYwY.js 248.77 kB │ gzip: 79.66 kB │map: 1,202.16 kB
- ✓ built in 973ms
Step 3. Enable ACUL in your Auth0 development tenant
Enable ACUL for the Login ID screen using a test Auth0 Management API Explorer Token, the Custom Domain address, and the local assets as HTML head tags.The local assets have different
hash
numbers, edit the curl
command head tags accordingly.Step 4. Render the ACUL Login ID screen
Start your development application or the Auth0 SDK sample application on yourlocalhost
to render the ACUL Login ID screen.
To learn more about the available screens, review ACUL Screens.