Replacing the default Login page in the Spotfire Server web UI
You can create a custom login page using the cobranding functionality. This topic describes how to create a custom login for username/password authentication, or using third-party web authentication providers.
Before you begin
- You have a cobranding.config file to work with. If you need one, see Creating a cobranding.config file.
-
In addition to the configuration file, you need the following files (links to templates and instructions are provided in the steps below):
- An HTML file for the login page. The contents of this file are injected into the Spotfire Server web interface (for example, custom-login-app-example.html).
- A JavaScript glue module. This file is the link between your HTML file and the Custom Login Page API (for example, custom-login-app-example.js).
- A CSS file (Optional. For example, custom-login-app-example.css).
Procedure
- The custom-login-app-example.html template
You can copy and edit this custom-login-app-example.html template to create a custom login page for the Spotfire Server web UI. - The custom-login-app-example.js template
You can copy and edit this custom-login-app-example.js template to create a custom login page for the Spotfire Server web UI. - The Custom Login Page API
The Custom Login Page API is a JavaScript module called custom-login-api.js, which exports the CustomLoginApi class. Instantiate this class to use the available functions. - The custom-login-app-example.css template
You can copy and edit this custom-login-app-example.css template to create a custom login page for the Spotfire Server web UI.