Question
HCL Technologies
IN
Last activity: 31 May 2017 8:22 EDT
REST Connector how to pass Siteminder SMSESSIONID
Hi,
We are trying to connect with external system, both PEGA Application and external system protected under siteminder, however when we try to connect external system from PEGA via RESTConnector we got redirected to the login page. Some how we have to pass the siteminder related SESSIONID/cookie/header variable along with the REST Connector. Please let me know hoe to achieve...
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
HCL Technologies
IN
Hi,
Thanks. This is not working, still I am redirected to login page. Is SMSESSIONID bydefault present in cookie and PEGA maintains the same? Please provide some solution
HCL Technologies
IN
If i am not having SMSESSIONID in Cookie how to set it?
Updated: 19 Oct 2015 11:48 EDT
You can get the cookie out of the request object only during authentication, the SM cookie can then be store on the clipboard page, however the SM cookie can change. Beyond authentication you can’t get the cookie information that is how it’s designed for security. Below is the sample code to get the cookie information:
javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest").getHeader(“cookie”);
PRPC system is two tiers, web-tier and e-tier. The actual HttpServletRequest object is not serializable so it can't be passed to the e-tier, so we use a facade object. The facade object is only created/populated during authentication, not on every request to PRPC. Chris Koyl : This is correct?
HCL Technologies
IN
Ok .. so before I call connect-REST from activity I have to call a JAVA step where the authentication is done and I've to set the session cookie in to clipboard page, is it right?
Tata Consultancy Services
US
Please let me know if you were able to resolve this with a detailed procedure
This comment has been branched out as a new node and the new thread can be followed here
Pegasystems Inc.
US
This post has been archived for educational purposes only. Links and content will not be updated. If you have the same or similar question, please Write a New Post.
Thank you.