What authentication method to access RRC through a (default) JAVA application using REST is best programmable: Form based or oAuth?
Hello,
I want to extract data from Rational Requirements Composer 3.0.1 using REST and (default) Java. I have successfully retrieved data from the browser, but I wish to bypass the browser and combine it with data transformation.
I see that some are trying to use Form based authentication and others oAuth (version?).
Having tried and failed with basic authentication (as described here https://jazz.net/open-services/services/authentication.jsp), I would like to try the better (maybe a future proof) option next. Especially since it seems that RTC (3.x) works with Form based, but RRC (3.x) does not. It is not clear what works with what version.
I should note that I probably do not have access to the technical side (consumer secret, etc) or control over the upgrade path.
Could you advise me, what authentication means to try to develop access to RRC from (default: no httpclient) Java?
Thanks in advance,
M
Accepted answer
Hi Marc,
https://jazz.net/library/article/635
RRC uses OAuth1 version to authenticate; on version 4.0.1 OAuth1a was implemented (for future reference)
You may find this OSLC workshop useful, it contains some sample codes to get information out of RRC via OSLC REST and it has a method to login you could use as a base for your development
https://jazz.net/library/article/635
Comments
5 other answers
Hi Gabriel
I'm getting an warning when I try to access the RMCatalog.
Maybe it is an embarrassing question but what do you mean by "Trying the workshop samples against jazz.net is not supported." ?
This is my warnings:
01-05-2013 09:25:09 org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: jfs-request-token-eb2b81238c6b4bbb8ee4813f31369d0c="9NC7FvhUcQW8IcjW9VR1fq1FxmmXuDGrZzJ9huym9c"; Version=1; Max-Age=600; Expires=Wed, 01-May-2013 07:35:09 GMT; Path=/rm". Unable to parse expires attribute: Wed
01-05-2013 09:25:09 org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://myJTSserver:9443/jts/oauth-authorize}
I'm getting an warning when I try to access the RMCatalog.
Maybe it is an embarrassing question but what do you mean by "Trying the workshop samples against jazz.net is not supported." ?
This is my warnings:
01-05-2013 09:25:09 org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: jfs-request-token-eb2b81238c6b4bbb8ee4813f31369d0c="9NC7FvhUcQW8IcjW9VR1fq1FxmmXuDGrZzJ9huym9c"; Version=1; Max-Age=600; Expires=Wed, 01-May-2013 07:35:09 GMT; Path=/rm". Unable to parse expires attribute: Wed
01-05-2013 09:25:09 org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://myJTSserver:9443/jts/oauth-authorize}
Comments
showing 5 of 6
show 1 more comments
Comments
Marc van Leeuwen
Mar 05 '13, 7:03 a.m.