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.
About this task
Note: A custom login page cannot contain inline styles or scripts (such
constructs will be blocked by the Content Security Policy).
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
Results
Note: If both a custom header and a custom login page are part of the
cobranding package, then the custom header will not be shown on the custom
login page. This limitation happens because all styles are stripped from a
custom login page and then re-inserted, to make them CSP-compliant, and that
can result in the styling not being applied correctly on the custom login page.
However, the custom header will be available on any other page in the web
interfaces of Spotfire, even if it is missing on the login page.
- 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.