Customization
Custom Images and Themes (Branding)
Currently, the SafeNet Keycloak Agent does not provide any user interface to customize the theme and images. However, it can be changed manually by updating the images with the same name and resolution. You need to update the CSS styles in the custom.css file to update the Themes.
Customize the Background Image
-
Navigate to the directory
{keycloakDirectory}\themes\sas-login-ui\login\resources\img
-
Replace your desired resource with the same name in the directory.
- background.jpg: The background image. (Recommended : JPG file with dimensions 1368px by 768px)
- bsid.ico: The BSID icon. (Recommended: ICO file with dimensions 48px X 48px)
- company_logo.png: The Company logo. (Recommended : PNG file with max. width of 300px)
- top_banner.png: The Company Banner image. (Recommended : PNG file with max. height of 75px)
-
The updated resources is reflected on the next login.
Customizing the Color of the Button on the Login Page
-
Navigate to the directory
{keycloakDirectory}\themes\sas-login-ui\login\resources\css
-
Open the file named custom.css.
-
Modify the css, by changing the color under: "sas-button" and save the file.
-
The changes are reflected on next Login or refresh the screen to see the changes.
Language Selection
SafeNet Keycloak Agent with SAS PCE is available in multiple languages. A language selection menu is available to the user on the login page. Once a language is selected, the whole UI switches to the selected language.
You should see the language selection menu as shown below:
The language selection menu is enabled in Keycloak admin console > Realm Settings > Themes.
If users are present in Keycloak
database then user specific language becomes a priority.
Click on Save to save the
new configuration of the Themes section as shown below. The
supported locales are updated in the background but these changes aren't
reflected in front end. For more information, refer to this
issue.
-
Follow the below steps after realm configuration.
-
For existing realms, turn on the Internationalization enabled, the following supported languages are displayed:
Supported languages are:
- cs: Czech
- da: Danish
- de: German
- en: English
- es: Spanish
- fi: Finnish
- fr: French
- it: Italian
- ja: Japanese
- ko: Korean
- nb: Norwegian
- nl: Dutch
- sv: Swedish
- zh-CN: Chinese, Mainland China, simplified characters
- zh-TW: Chinese, Taiwan, traditional characters
Note
For new realms, this setting is enabled by default.
-
Click Save to save the realm configuration.
-
After configuration, the default set up of Localization section is displayed, click Save.
Keyword Customization
Keycloak server provides the functionality to customize the text appearing on SafeNet Authentication Service login screen. Customization of keywords can be achieved in two ways:
Edit language specific JSON file
-
Locate the language specific JSON files, placed at
{keycloakDirectory}\themes\sas-login-ui\login\resources\langs
. -
Edit the required JSON file and Save it.
Update language specific locale file
-
Click Localization, select the locale as per your requirement.
-
Click Add message bundle, a pop-up is displayed.
-
Enter the corresponding Key Value pair, and click Create.
Note
Some important Key Value pair are enclosed below. To view all the Key Value pairs, go to JSON file of the desired language.
Key Default Value login-page-title-sas SafeNet Authentication Service appname SafeNet Authentication Service Console usernameOrEmail Username password Password button-login Login -
Sign in to SafeNet Authentication Service to see the updated keywords.