Question

3
Replies
241
Views
MatthiasGuenther Member since 2014 8 posts
Cognizant
Posted: February 12, 2019
Last activity: May 8, 2019
Closed

pxHTTPServletRequest in Pre-authentication activity

Hello.

I try to access pxHTTPServletRequest in the pre-authentication activity of a SAML2 based SSO authentication service, but the object is always empty. I am trying it in a Pega 7.4 environment with following statement:

(javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")

In other PDN articles i have found, that this object is only available during the authentication. As I am here in the pre-authentication activity of my authentication service, i would guess, that the object is present here?!

Any ideas, why it is not the case?

Thanks & regards, Matthias

Background for my scenario:

Pega is called from an external non Pega portal to run the SSO against IdP. After authentication Pega create a session for the user and redirect to the external non Pega portal, which is then interacting with the Pega user session. For the correct redirecting to the external non Pega portal, I have to read some parameters from the original request which is coming from the external non Pega Portal in the first step. This parameters are then used for the redirecting from Pega to the external non Pega Portal.

***Edited by Moderator Marissa to update platform capability tags****

Pega Platform Security
Moderation Team has archived post
Share this page LinkedIn