You can integrate a custom background image into your Pega application login screen HTML through a binary file.
After creating an authentication service, you must configure your browser requestor. For more information, see unauthenticated ruleset.
In the navigation header of Dev Studio, select. Pega Platform displays the Binary File Record Configuration form.
Complete the configuration form:
- In the Label field, enter a unique label for the image.
- In the App Name (Directory) field, enter webwb.
- In the File Type (extension) field, enter the Windows extension (for example, png, jpeg) for the file you want to upload to the binary file. Do not include a period.
In the Context section, select the application that contains your unauthenticated ruleset.
In the Add to ruleset list, select the unauthenticated ruleset that you created.
Click Create and open to display the Binary File rule form.
Click Upload file to open the file browser.
Click Save. In the Image details section, Pega Platform displays the file that you uploaded and its dimensions.
Note the dimensions of the image for future use in the CSS file.
In the navigation pane of Dev Studio, select.
In the File Name column, click the Search icon.
In the search text field, enter the Editing the text rules that contain the source CSS for login screens that contains the CSS of the login screen you want to customize with the image as a background.
Click the resulting row.
Press CTRL + F and enter the following text:
In the background-image element, replace the existing values with the image name and extension in the following format:
Below the background-image element, enter a background-size element with the dimensions of the image for width and height in pixels (px).
For example: background-size: widthpx heightpx;
Click Check-in to add changes to the unauthenticated ruleset that you created.
Confirm that the background image appears correctly on your background for the selected login screen.
If you want to edit the source HTML of your login screens, see Editing the source HTML of your login screen.
- unauthenticated ruleset
After you create an authentication service, you must associate a Browser requestor and Pega application with an unauthenticated Access Group and ruleset to synchronize customizations of your login screens with your application.
- Editing the source HTML of your login screen
Your Pega application uses several rules that form the source markup HTML and CSS of your login screens. To customize these login screens, you can add your own HTML structure, CSS elements, or background images to the source fields in each of their respective HTML and Text rules.
- Customizing login screens for your Pega application
Your Pega application uses several rules that correspond to each screen accessed by unauthenticated operators (users who have not logged in). Pega Express allows you to customize these screensincluding the login screen, authentication screen, logout screen, and other screensthrough their source HTML and custom cascading style sheets (CSS).