IAM: Whitelabeling
This guide explains how to customize the appearance of the IAM module's user-facing pages to match an organization's branding.
Overview
Whitelabeling changes the visual identity (branding) of two IAM interfaces:
- The login page, served by Keycloak with the
whitelabellogin theme. - The IAM web application (user management pages), served by the IAM frontend.
global.whitelabel in values.yaml configures both interfaces; which settings apply to which one is shown in the tables below.
The IAM module supports three methods:
- Whitelabeling with Helm values: The simplest and recommended method. Content, styling, and the favicon are set directly in
values.yaml. - Whitelabeling with existing ConfigMaps: The CSS, JSON, and favicon of the IAM web application are kept in separately managed ConfigMaps. This method does not change the login page.
- Custom Keycloak theme (JAR): A custom Keycloak login theme is packaged as a JAR file and shipped in the providers image.
Upgrading from a release older than 1.7
IAM 1.7 replaces the Keycloak login theme. Most global.whitelabel settings keep working, but some CSS variables, JSON fields, and overrides no longer apply. When upgrading from any earlier release, see Upgrading IAM to 1.7.
Whitelabeling with Helm values
Enable whitelabeling
To enable whitelabeling, set global.whitelabel.enabled to true in values.yaml.
global:
whitelabel:
enabled: true
# ... customizations below
Every helm install and helm upgrade sets the login theme of the realm:
global.whitelabel.enabled |
Realm login theme |
|---|---|
true |
whitelabel (uses the values described below) |
false |
keycloak.spiThemeDefault (default regnology, the Regnology look) |
Warning
A login theme selected by hand in the Keycloak realm settings is reset on the next helm upgrade. Use global.whitelabel.enabled or keycloak.spiThemeDefault to choose the theme.
Content (Login & Footer)
Text and links on the login page and in the footer are provided as a JSON structure in global.whitelabel.json.
Available Fields:
| Area | Key | Description |
|---|---|---|
login |
supportLabel |
The heading of the support contact block. Default: "Contact support". |
login |
supportWebsite |
The URL of the support website. |
login |
supportEmail |
The support email address. |
login |
supportPhone |
The support phone number. |
login |
info.mode |
"info" hides the badge above the information panel. Any other value shows it. |
login |
info.badge |
The text of the badge above the information panel. Default: "News". |
login |
info.content |
The text of the information panel next to the login form. Replaces the default Regnology text. |
login |
info.link.href |
The URL of the link in the information panel. |
login |
info.link.label |
The text of the link in the information panel. Default: "Read article". |
footer |
companyName |
The company name in the copyright line ("© 2026 My Company"). |
footer |
licenseLink |
The URL of the license agreement, shown as a "Licensing" link. Leave empty to hide the link. |
footer |
poweredBy |
The "Powered by" text in the copyright line. |
Rules:
- The support contact block is shown when at least one of
supportWebsite,supportEmail, orsupportPhoneis set. - All values are plain text. HTML is shown as text and not interpreted.
- Links are rendered only for
http://andhttps://URLs. global.whitelabel.jsonreplaces the default JSON as a whole. Fields that are not set are not taken from the default.- If the JSON is invalid, the login page falls back to the default texts.
Example configuration:
global:
whitelabel:
enabled: true
json: |
{
"login": {
"supportLabel": "We are here to help you:",
"supportWebsite": "https://support.mycompany.com",
"supportEmail": "support@mycompany.com",
"supportPhone": "+1-800-555-1234",
"info": {
"mode": "info",
"content": "Welcome to the My Company reporting platform.",
"link": {
"href": "https://mycompany.com/news",
"label": "Read more"
}
}
},
"footer": {
"companyName": "My Awesome Company",
"licenseLink": "https://mycompany.com/license",
"poweredBy": "Powered by My Awesome Company"
}
}
Styling (CSS)
Default styles are overridden with CSS variables in global.whitelabel.css. This is used to change colors, logos, and background images. It is sufficient to set only the variables that should change.
Example configuration:
global:
whitelabel:
enabled: true
css: |
:root {
--oru-brand-theme: 'dark';
--oru-brand-primary: #012D3F;
--oru-company-logo: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMj...');
--oru-login-marketing-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMj...');
--oru-startup-background: url('data:image/svg+xml;base64,PHN2ZyB3...');
--oru-primary-button-background: #012D3F;
--oru-primary-button-hover-background: #9FA8A9;
--oru-topnav-links-color-hover: #9FA8A9;
--oru-topnav-links-color: #FFFFFF;
}
CSS Variables for the Login Page
| CSS Variable | Type | Description | Default |
|---|---|---|---|
--oru-brand-primary |
Color | Background color of the page, used when --oru-startup-background-color is not set. |
Regnology petrol blue |
--oru-startup-background-color |
Color | Background color of the page. | --oru-brand-primary |
--oru-startup-background |
Image | One background image that covers the whole page. Use either this or the left and right images. | - |
--oru-startup-background-left |
Image | Left part of the background image. | Illustration |
--oru-startup-background-right |
Image | Right part of the background image. | Illustration |
--oru-login-marketing-image |
Image | Logo on the login card (light color scheme). | Regnology logo |
--oru-company-logo |
Image | Logo on the login card (dark color scheme). Also the logo in the top navigation of the IAM web application. | Regnology logo |
--oru-startup-dialog-background |
Color | Background of the login card (light color scheme). | White |
--oru-primary-button-background |
Color | Background of the primary button (light color scheme). Also used for the focus line of input fields and checkboxes. | Regnology green |
--oru-primary-button-hover-background |
Color | Background of the primary button on hover (light color scheme). | Dark Regnology green |
CSS Variables for the IAM Web Application
| CSS Variable | Type | Description | Default |
|---|---|---|---|
--oru-brand-theme |
light | dark |
Light or dark brand theme. For a dark theme (dark primary color), text on buttons and the top navigation is light. | dark |
--oru-brand-primary |
Color | Primary color of the brand: background of the top navigation, and of primary buttons when --oru-primary-button-background is not set. |
Regnology petrol blue (top navigation) |
--oru-company-logo |
Image | Logo in the top navigation, used as the home button. | Regnology logo |
--oru-primary-button-background |
Color | Background color of primary buttons. | --oru-brand-primary; Regnology green when neither is set |
--oru-primary-button-hover-background |
Color | Background color of primary buttons on hover. | Regnology light green (#3ce55a) |
--oru-primary-button-color |
Color | Text color of primary buttons. | --oru-brand-text-color-inverted |
--oru-primary-button-hover-color |
Color | Text color of primary buttons on hover. | --oru-brand-text-color |
--oru-brand-text-color |
Color | Brand text color, used for the primary button text on hover. | #012d3f |
--oru-brand-text-color-inverted |
Color | Text color on the primary color: primary button text and top navigation links and icons. | #fff |
--oru-brand-text-color-inverted-hover |
Color | Color of the top navigation icons on hover, used when --oru-topnav-icon-color-hover is not set. |
#fff |
--oru-topnav-links-color |
Color | Color of the top navigation links. | --oru-brand-text-color-inverted |
--oru-topnav-links-color-hover |
Color | Color of the top navigation links on hover. | Regnology light green (#3ce55a) |
--oru-topnav-icon-color |
Color | Color of the top navigation icons (notifications, user menu). | --oru-brand-text-color-inverted |
--oru-topnav-icon-color-hover |
Color | Color of the top navigation icons on hover. | --oru-brand-text-color-inverted-hover |
--oru-topnav-background-color |
Color | Deprecated in favor of --oru-brand-primary. |
|
--oru-topnav-theme |
Text | Deprecated in favor of --oru-brand-theme. |
--oru-brand-secondary has no effect in the IAM web application or on the login page.
Texts are set in JSON, not in CSS
The login page does not read text or link variables such as --oru-login-welcome, --oru-login-info-title, --oru-login-support-email, or --oru-login-news-mode. Texts and links are set in global.whitelabel.json (see Content).
Custom CSS Rules
Besides the variables, global.whitelabel.css may contain regular CSS rules. The login page is based on the Keycloak keycloak.v2 theme (PatternFly 5). Rules for the dark color scheme use the .pf-v5-theme-dark selector.
global:
whitelabel:
enabled: true
css: |
:root {
--oru-primary-button-background: #C21B25;
}
.pf-v5-theme-dark .pf-v5-c-button.pf-m-primary {
--pf-v5-c-button--m-primary--BackgroundColor: #C21B25;
--pf-v5-c-button--m-primary--Color: #FFFFFF;
}
Favicon
A custom favicon is set by providing a base64-encoded PNG image in global.whitelabel.favicon.pngB64. It is used by the login page and the IAM web application.
To generate the required base64 string from an image file, use this command:
base64 < my-favicon.png
Example configuration:
global:
whitelabel:
enabled: true
favicon:
pngB64: |
iVBORw0KGgoAAAANSUhEUgAAAEAAAXHe...
Apply the changes
After updating values.yaml, apply the changes by upgrading the Helm release:
helm upgrade <release-name> <chart-path> -f values.yaml
The URLs of the login page styles and favicon change with their content, so browsers load the new version of the login page after the upgrade.
Default Regnology theme
When whitelabeling is disabled, the login page uses the regnology theme. It can still be adjusted with keycloak.themes.regnology.css, which accepts the variables listed in CSS Variables for the Login Page:
keycloak:
themes:
regnology:
css: |
:root {
--oru-primary-button-background: #012D3F;
}
The regnology theme shows a link to the Regnology customer support website. To hide it, add an empty regnologySupportUrl to the theme properties:
keycloak:
themes:
regnology:
themeProperties: |
parent=regnology-plain
regnologySupportUrl=
Whitelabeling with existing ConfigMaps
This method keeps the IAM web application branding in separately managed ConfigMaps. This is useful for:
- Keeping branding configurations isolated and reusable.
- Integrating with a GitOps workflow where configuration is managed in separate files.
IAM web application only
Existing ConfigMaps are used only by the IAM web application. The login page always uses global.whitelabel.json, global.whitelabel.css, and global.whitelabel.favicon.pngB64 (or the defaults). To brand both, set the same content in the ConfigMaps and in values.yaml.
Step 1: Create the ConfigMaps
Two ConfigMaps are needed: one for the CSS and JSON, and one for the favicon.
A. Content & Styling ConfigMap
This ConfigMap must contain two keys: whitelabel.json and whitelabel.css.
apiVersion: v1
kind: ConfigMap
metadata:
name: my-custom-whitelabel-config
data:
whitelabel.json: |-
{
"login": {
"supportLabel": "Custom Support:",
"supportWebsite": "https://my-support.com"
},
"footer": {
"companyName": "My Custom Company"
}
}
whitelabel.css: |-
:root {
--oru-brand-primary: #123456;
--oru-primary-button-background: #abcdef;
}
B. Favicon ConfigMap
This ConfigMap must contain the key favicon.png with the base64-encoded favicon.
apiVersion: v1
kind: ConfigMap
metadata:
name: my-custom-favicon-config
binaryData:
favicon.png: |-
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHe... # base64-encoded image
Step 2: Apply the ConfigMaps to the cluster
kubectl apply -f my-whitelabel-config.yaml
kubectl apply -f my-favicon-config.yaml
Step 3: Configure values.yaml
Point the chart to the ConfigMaps with existingConfigmap:
global:
whitelabel:
enabled: true
# ConfigMap with whitelabel.css and whitelabel.json
existingConfigmap: 'my-custom-whitelabel-config'
favicon:
# ConfigMap with favicon.png
existingConfigmap: 'my-custom-favicon-config'
The IAM web application then uses the data from these ConfigMaps instead of global.whitelabel.json, global.whitelabel.css, and global.whitelabel.favicon.pngB64.
Custom Keycloak theme (JAR)
A custom Keycloak login theme can be packaged as a JAR file. This approach is recommended when:
- The theme needs its own templates or messages.
- The theme includes large assets (images, fonts).
- The theme should be versioned and distributed as a standalone package.
Step 1: Create and package the theme JAR
Create a standard Keycloak login theme and package it as a JAR file. To keep the Regnology layout and the CSS variables, set parent=regnology-plain in the theme's login/theme.properties.
Step 2: Include the JAR in the providers image
Add the theme JAR to the content that builds iam-keycloak-providers (or an equivalent providers image that the chart's update-providers init container copies into Keycloak), then push that image with the chart SEMVER tag. Redeploy so that the init container copies the JAR into /opt/keycloak/providers before Keycloak starts.
Step 3: Select the theme
Set the theme name in keycloak.spiThemeDefault and keep whitelabeling disabled, because global.whitelabel.enabled: true always selects the whitelabel theme. With whitelabeling disabled, the IAM web application uses the default Regnology look.
global:
whitelabel:
enabled: false
keycloak:
spiThemeDefault: my-company-theme
Verify the configuration
- Log out of the application.
- Navigate to the login page. The new branding, content, and favicon are shown.
- Log in and check the IAM web application. If it still shows the old branding, reload the page without the cache or open a private browser window.
Troubleshooting
When the changes are not showing up, check the following:
- Whitelabeling is enabled.
global.whitelabel.enabledistrueinvalues.yaml. - The changes are applied.
helm upgraderuns after every change tovalues.yaml. - The YAML is valid.
values.yamlhas no indentation errors. - The JSON is valid. Invalid JSON in
global.whitelabel.jsonmakes the login page fall back to the default texts. - The CSS variable is read by the login page. Only the variables listed in CSS Variables for the Login Page change the login page.
- The content is set in
global.whitelabel. Existing ConfigMaps (existingConfigmap) apply only to the IAM web application, so a login page that is not branded needs the content inglobal.whitelabelas well. - No cache serves old files. The IAM web application, a proxy, or a CDN can serve an old
whitelabel.cssor favicon. Reload without the cache or clear the proxy cache.
To return to the default theme, set global.whitelabel.enabled: false and run helm upgrade. The realm login theme is set to keycloak.spiThemeDefault (default regnology).