Does Agile SDK support cookie session with OAM SSO enabled?
Hi All,
We have enabled OAM SSO in Agile server. Everything works fine in web client but i am unable to create cookie session using SDK.
Following are the sso settings in agile.properties:
######################
#Single sign-on settings
######################
agile.sso.cookie.name=SMSESSION
agile.sso.checkOneTimePXToken = true
agile.sso.expirationTime = 120
#OAM Settings
oam.header.name=remote-user
oam.sso.logout.url=/oamsso/logout.html?end_url=/Agile/PLMServlet
When we try to create Agile session in WebPX, it gives the following exception:
Code:
public static IAgileSession getRequestSession(HttpServletRequest request, String agileServerURL) throws APIException {
HashMap<Object, Object> params = new HashMap<Object, Object>();
params.put(AgileSessionFactory.PX_REQUEST, request);
AgileSessionFactory factory = AgileSessionFactory.getInstance(agileServerURL);
return factory.createSession(params);
}
Session creation using credentails works fine.
Thanks in Advance!
Hi,
Can you please share your code that you are using to create the IAgileSession with cookies?
Be sure to use parameters below to set username and password
params.put(AgileSessionFactory.PX_USERNAME, username);
params.put(AgileSessionFactory.PX_PASSWORD, password);