Problems with Form Based Authentication in Java
I want to use REST to query and update work items in RTC 2.0.0.2. I looked at some guides to get a good concept of it:
http://jazz.net/library/article/352 https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Form_based_authentication_using I'm trying to use the discovery chain and I can get the catalog link successfully from rootservices. But to access the catalog, I would need to be authenticated, which is where I'm stuck. I tried following this guide for form based authentication, but I'm not having any luck. Tomcat 5 is the application server. I outputted my cookie store and I can see that it has a JSESSIONID and JazzFormAuth. httpClient = new DefaultHttpClient(); |
One answer
Resolved.
After authenticating (posting to j_security_check), you need hit another page (ex. identity) to receive the another cookie: X-com-ibm-team-foundation-auth-loop-avoidance=false |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.