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:

Does Agile SDK support cookie session with OAM SSO enabled?

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!

Add Comment
2 Answer(s)

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);

Agile Angel Answered on May 25, 2016.

I have added my code snippet to the post. Thanks.

on May 25, 2016.
Add Comment

Hi,

Has there been any update on this issue?

Agile User Answered on February 24, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.