Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

SSO IdP Response Header parameter returns Null

SA-85878

Summary



Single Sign-On (SSO) Identity Provider (IdP) Response Header parameters return null when accessed from the Authentication activity.


Error Messages



Not Applicable


Steps to Reproduce



Read the below Header parameter,

@java("((javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")).getHeader(\"SM_USER\")")


Root Cause



The header name provided was not present in the received Header names list.


Resolution



Perform the following local-change:

Provide the correct header name that is printed when the below Jave code is added in the Authentication activity.


javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest"); 

if (request == null) { 
oLog.infoForced("NULL REQUEST OBJECT!"); 


else { 
java.util.Enumeration e = request.getHeaderNames(); 
String header = null; 
while (e.hasMoreElements()) { 
header = (String) e.nextElement(); 
oLog.infoForced(header + ": " + request.getHeader(header)); 

Suggest Edit

Published October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us