Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

OSLC API : Authentication methods?

For CCM
HttpUtils.sendGetForSecureDocument(server, requirementDoc, userId, password, httpclient);
For RM 
HttpUtils.sendGetForSecureDocument(server, requirementDoc, userId, password, httpclient,JTS_Server);

Here I am Not able to understand why there is difference for CCM,RM with extra JTS_Server Parameter.
Why do we need JTS_Server parameter only for RM and not for CCM? 
In my Application development I need to access both RM and CCM through OSLC, in that case I need to have two classes implementing these methods in  HttpUtils class. If it is possible,I want to use one of methods for both RM,RQM which is the best?

0 votes

Comments

Can you give a bit more context?
- What version of CLM are you using?
- Assume you code snippet above comes from the OSLC workshop?

Basically in my Application I have URI's of Requirement and Test case fetched from Story work item   which are nothing but links to it.
I was able to process Test case URI using OSLC API's but when I try to process the Requirement URI using OSLC API's I am getting error of Unauthorized access.
I simply dont understand why do we have two different overloaded methods for Authentication  Please explain What is the reason behind it.
I am using the CLM and 6.0 and 5.0.2
yes, I have taken snippet from OSLC Work shop of RM and CCM


Accepted answer

Permanent link
Due to historical reason, RM does not provide an /rm/j_security_check URL for authentication, and you have to use /jts/j_security_check for this purpose. Since the public URLs for JTS and RM do not necessarily have the same host, you need to specify the JTS host for RM authentication.

If you check the source code carefully, you should see implementation of the HttpUtils class varies in the CCM and RM samples - CCM handles the authentication in the sendGetForSecureDocument() function and RM handles in in the doRRCOAuth() function. Strictly speaking, they are not the same class.

If you insist on a single HttpUtils class, you need to merge source code together and handle the authentication appropriately upon detecting the application variant (CCM, QM or RM) in the URL. You have the source code at your disposal so you should be able to do what you want.
vijayakumar ramesh selected this answer as the correct answer

2 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 7,495
× 1,700

Question asked: Sep 23 '15, 10:20 a.m.

Question was seen: 4,372 times

Last updated: Sep 24 '15, 3:15 a.m.

Related questions
Confirmation Cancel Confirm