White labeling: Login
The Login tab of White labeling customizes the login page that users see when they open ThingsBoard on your custom domain. Go to White labeling ⇾ Login. The tab has three sections: Domain, Logo & titles, and Appearance.
Configure the settings in the sections below, then click Save. To check the result, open your domain in the browser.
Domain
Section titled “Domain”| Setting | Description |
|---|---|
| Domain name | The domain the login page is served on. Select a domain, or click Create new to add one. |
| Base URL | The public URL of the domain. Include the protocol (http or https) and the port if it is not 80 or 443. |
| Prohibit to use hostname from the client request headers | ThingsBoard uses the Base URL instead of the hostname sent by the client. Select it for production environments; leaving it cleared may cause security issues. |
To add a domain from this tab:
- Click Create new next to Domain name. The Add domain dialog opens.
- Enter the Domain name. Make sure you own this domain.
- Optionally, set up sign-in with an external provider: turn on Enable OAuth 2.0 settings and select the OAuth 2.0 clients, or click Create new to add one. Register the Redirect URI template (use the copy icon) as the redirect URI in the provider’s settings.
- Optionally, turn on Propagate to Edge to propagate the domain to ThingsBoard Edge.
- Click Add.
The login page works on the domain only after its DNS record is set up. For DNS setup and other domain settings, see Domains. For OAuth 2.0, see OAuth 2.0.
Logo & Titles
Section titled “Logo & Titles”| Setting | Description |
|---|---|
| Application title | Title in the browser tab on the login page. |
| Website icon | Icon in the browser tab and bookmarks. PNG or ICO, 32×32 px recommended. |
| Logo | Logo on the login form. SVG or PNG, at least 96 px high, up to 200 KB. |
| Logo height | Logo height in pixels, up to 200 px for tall logos. When the field is empty, the default height shown in it is used. The logo scales proportionally and stays centered. |
| Show platform name and version | Shows Platform Name and Platform version (required; prefilled with ThingsBoard and the current version) at the place selected in Platform name and version position, for example Bottom of the login form. |
For Website icon and Logo, click Browse from gallery to pick an image from the image gallery, or Set link to use an image URL.
Appearance
Section titled “Appearance”The preview at the top of the section shows the login form with the selected colors.
| Setting | Description |
|---|---|
| Primary palette | The main brand color of the login page. |
| Dark foreground | Makes login page text and icons dark. Use it with light backgrounds. |
| Accent palette | Colors checkboxes, radio buttons, toggles, sliders, progress bars, and badges. |
| Page background color | Background color of the login page. |
To set a palette, select one from the Primary palette or Accent palette list, for example Default, Red, or Purple. To adjust its colors, click Customize (pencil icon) next to the list. Palettes work the same way as on the General tab; see Appearance.
To set the background color, click Page background color (palette icon) next to the field, pick a color or enter its HEX value, and click Select. Click Clear to return to the default color.
Advanced CSS
Use custom CSS for what the palettes do not cover. CSS set on this tab applies only to the login page.
- Click Add Custom CSS.
- Enter your CSS in the Advanced CSS editor.
- Click Save in the dialog, then Save on the tab.
Reset to Default
Section titled “Reset to Default”To discard all customizations of the login page, click Reset to default at the bottom of the Login tab and confirm.
Was this helpful?