- On the Auth0 Dashboard, navigate to Branding > Universal Login > Login tab.
- Enable the Customize Login Page toggle.
- Above the HTML code editor, select the Default Templates menu and choose the desired option.
- Lock
- Lock (passwordless)
- Custom Login Form
Using the Lock widget
Lock is a login form that makes it easy for your users to authenticate using a selected connection. Lock automatically handles most of the details involved in creating and authenticating users. With Lock, you will be implementing a UI that:- Is robust and provides an excellent user experience on any device with any resolution
- Has a simple design that fits in with most websites with just a few tweaks to its custom color
- Adapts to your configuration, displaying the appropriate form controls for each available connection and only those that are allowed (such as signup or password reset)
- Selects the correct connection automatically. You may specify a desired default behavior for ambiguous cases
- Remembers the last used connection for a given user
- Automatically accommodates internationalization
- Provides instant password policy checking at signup
- You like the structure, look, and feel of the widget.
- You prefer a streamlined implementation of Classic Login with a ready-made responsive UI.
-
Your process includes many of the use cases that Lock handles out of the box:
- Enterprise logins
- Databases with password policies
- User signup and password reset
- Authentication using social providers
- Avatars
Sample login customization scripts
Customize the application logo
The example script below customizes the logo for each application, or you can set a default logo. The minimum recommended resolution is 200 pixels (width) by 200 pixels (height). Add thelogouturl
configuration to the <scripts>
block:
Customize the signup terms
The example below customizes the signup terms for your application. You can add custom language to display when users signup.Using the Auth0 SDK for Web
If the requirements of your app cannot be met by the standardized behavior of Lock, or if you have a complex custom authentication process, a custom user interface is needed. You may also prefer this option if you have an existing user interface that you wish to use. With Auth0’s library for Web, you can customize the behavior and flow of the process used to trigger signup and authentication. You can also directly use the Authentication API, without any wrapper at all, if you so choose. Unlike with Lock, neither of these options includes a user interface. You will have complete control over the user experience for signup and authentication flow, and for the UI aspects of layout, look and feel, branding, internationalization, RTL support, and more. Consider implementing a custom user interface in conjunction with an Auth0 library or the Authentication API for your app if:- You have strict requirements for the appearance of the user interface
- You have strict requirements for file sizes - the Auth0 libraries are significantly smaller than Lock, and if you instead choose to deal with the API directly, that would not require any additional weight.
- You are comfortable with HTML, CSS, and JavaScript - you’ll be creating your own UI
- You only need to handle username/password and social provider authentication
- You have multiple database or Active Directory Connections