Before you begin
-
Use Universal Login.
- This feature is not available for custom login pages.
- Configure a custom domain.
- Enable the following for your application:
Implement flexible connection switching
| Parameter | Description | Example |
|---|---|---|
state | Renders the current page’s state value, which is opaque and used for security purposes. To learn more about current screen information, review Customize Univeral Login Page Templates. | <input type=‘hidden’ name=‘state’ value=‘{{state}}‘> |
connection | Name and type of the connection. For passwordless connections, value is either email or sms. | <input type=‘hidden’ name=‘connection’ value=‘email’> |
Configure signup prompt
signup-password prompt using the Set partials for a prompt endpoint:
As a result, a Send a secure code by email button is added to the signup-password screen. When a user selects this button, it submits a form body containing the login state parameter and the name of the desired connection.
Configure login prompts
login-password prompt using the Set partials for a prompt endpoint:
As a result, a Send a secure code by email button is added to the login-password screen. When a user selects this button, it submits a form body containing the login state parameter and the name of the desired connection.
Similarly, you can configure the login-passwordless prompt using the Set partials for a prompt endpoint: