Question

2
Replies
42
Views
Ajit Tiwari (AjitT017)
Molina Healthcare Inc
Lead System Architect
Molina Healthcare Inc
US
AjitT017 Member since 2021 1 post
Molina Healthcare Inc
Posted: June 16, 2021
Last activity: June 16, 2021
Posted: 16 Jun 2021 1:03 EDT
Last activity: 16 Jun 2021 11:22 EDT
Solved

Customize Pega login screen for PRAuth URL

Hi,

I need to customize the PRAuth servlet login screen such that I need to hide the Pega default login UserName and Password text box and button. Instead I want to show the custom SAML link/button.

I understand that HTML rule used by /PRAuth/ servlet is "pyDisplayAuthScreenSelector" and should be modified to hide/disable the default pega login controls on screen. But since this is OOTB rule and I'm looking for way to do this without modifying the rule.

After reviewing the code in pyDisplayAuthScreenSelector" HTML, I see there is a when condition set to control display of credentials div.

The two property checked in when condition are isAuthServiceSelected and isBasicAuthEnabled. But I'm not sure If there values are configurable and where I can set or change those values to set when as "False" and it should automatically hide Pega default login.

 <% boolean isAuthServiceSelected = tools.getParamAsBoolean(com.pega.pegarules.pub.dictionary.ImmutablePropertyInfo.TYPE_TRUEFALSE,"isAuthServiceSelected");

                  boolean isBasicAuthEnabled = StringUtils.isNotBlank(tools.findPage("D_pzGetAuthServicesList").getString(".pyName"));                   %>                   <pega:when java="<%=isBasicAuthEnabled || isAuthServiceSelected == true%>">

Hi,

I need to customize the PRAuth servlet login screen such that I need to hide the Pega default login UserName and Password text box and button. Instead I want to show the custom SAML link/button.

I understand that HTML rule used by /PRAuth/ servlet is "pyDisplayAuthScreenSelector" and should be modified to hide/disable the default pega login controls on screen. But since this is OOTB rule and I'm looking for way to do this without modifying the rule.

After reviewing the code in pyDisplayAuthScreenSelector" HTML, I see there is a when condition set to control display of credentials div.

The two property checked in when condition are isAuthServiceSelected and isBasicAuthEnabled. But I'm not sure If there values are configurable and where I can set or change those values to set when as "False" and it should automatically hide Pega default login.

 <% boolean isAuthServiceSelected = tools.getParamAsBoolean(com.pega.pegarules.pub.dictionary.ImmutablePropertyInfo.TYPE_TRUEFALSE,"isAuthServiceSelected");

                  boolean isBasicAuthEnabled = StringUtils.isNotBlank(tools.findPage("D_pzGetAuthServicesList").getString(".pyName"));                   %>                   <pega:when java="<%=isBasicAuthEnabled || isAuthServiceSelected == true%>">

 <div id="credentials"  >                                 <div id="credentialsForm">

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Platform 8.4.1 Security User Experience Healthcare and Life Sciences Lead System Architect