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">