Custom Login Page
In some scenarios, our account system may be divided into multiple groups, such as internal employees and suppliers. Internal employees typically use the company's internal unified authentication system, while suppliers generally use the software system's own authentication system. In such scenarios, the need for multiple login methods arises.
Within the platform, you can customize login pages through the component editor, combined with the automation and scripting capabilities provided by the system to complete multiple authentication systems. The following describes an example where suppliers use platform account password login, and internal employees can use both account password login and dynamic token for SSO login.
Effect Diagrams
Component Settings
Use the component editor to build the login page. The specific source code can be referenced from the Functional Demo application's "Other Cases" -> "Multi-account Type Login". The following provides the core source code of the component for explanation. This component depends on component libraries such as HTML, Informat Web Runtime, and Axios Network Request Library. Set the component's access address as the login address in the admin backend's Login Address to replace the system's default login page.
Automation Settings
In the login component's script, we called two automations pwdLogin and ssoLogin through the Informat Web Runtime. Both automations only use code snippets to complete their respective business logic. The following is the specific source code.
TIP
Since the component uses Informat Web Runtime which is called via HTTP, automations need to enable Allow calling automations via HTTP.

