How to: .NET client for OSLC RM API and oAuth
![]()
Kangkan Goswami (157●1●16●21)
| asked May 03 '12, 6:35 a.m.
retagged Jun 25 '12, 5:19 a.m. by Arne Bister (2.6k●1●28●32)
I am trying to get the RMCatalog through the OSLC API.
I am using c# (.Net) application and trying to get the details. But I am getting the 401 (Unauthorized) error. I have the code here:
This works fine when I try to get the CLM catalog at https://server:9443/ccm/oslc/workitems/catalog Inspecting further using Fiddler, I could find that the service is expecting oAuth authentication. I tried to find any clear documentation on this, but failed to find anything specific for .NET development. Can somebody provide some sample code for .NET or provide me details of how one can implement such a .NET client for the OSLC RM API? |
6 answers
![]()
I could finally find the way and could do the oAuth authentication and get the RMCatalog and the project names.
However, I am now facing issues with how to get the requirements from a selected project. Thanks to poor documentation from IBM. I am trying to get the RMCatalog through the OSLC API. |
![]()
After a lot of trial and error and referring to the OSLC Workshop material (https://jazz.net/library/article/635), I could finally get the requirement list from the RM server.
However, I am yet to be able to get the values of all the attributes. While, I could GET the value for "Planned Release" attribute, others are coming blank. Can anybody help me retrieving the attributes and their values for the requirements? |
![]()
You can get the details and the code here: http://www.geekays.net/post/2012/05/25/Integrating-IBM-Jazz-oAuth-for-OSLC-API.aspx
Hi Kangkan Goswami, |
![]()
Regarding my case, a little further digging has revealed that this is failing because our server doesn't have a valid security certificate. Other users may not have this issue.
|
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.
Comments
Hi Kangkan Goswami,
:oThis is Akki, I am also trying to authenticate the RRC server with Oauth Authentication but no luck so far,
Can you provide me some links and/or the code that you used to authenticate the server using Oauth Authentication.
Regards
Akki