pxHTTPServletRequest is unavailable outside the authentication
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:
req = (javax.servlet.http.HttpServletRequest) pxRequestorPage.getObject("pxHTTPServletRequest");
Null Pointer exception
Steps to Reproduce
- Log in to the application
- Authenticate the user using the SAML
- Renew or retrieve the SAML before invoking the webservice to send it in the SOAP Request header
- Use the code outside the authentication activity. Exception occurs
This issue was determined to be a product enhancement request.
An enhancement request, FDBK-61575, is created for consideration by Pega Product Management.
0% found this useful