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

pxHTTPServletRequest is unavailable outside the authentication

SA-86926

Summary



User retrieves SAML from the pxHTTPServletRequest header and sends it to every webservice call as it expires every 15 minutes. Pega only allows access to pxHTTPServletRequest during the authentication. Requirement is to access the header outside the authentication. Exception occurs on using the below code outside the authentication activity:
javax.servlet.http.HttpServletRequest req;
req = (javax.servlet.http.HttpServletRequest) pxRequestorPage.getObject("pxHTTPServletRequest");


Error Messages

Null Pointer exception


Steps to Reproduce

  1. Log in to the application
  2. Authenticate the user using the SAML
  3. Renew or retrieve the SAML before invoking the webservice to send it in the SOAP Request header
  4. Use the code outside the authentication activity. Exception occurs


Root Cause



This issue was determined to be a product enhancement request.
 

Resolution



An enhancement request, FDBK-61575, is created for consideration by Pega Product Management. 

 

 

Published October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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