Calling REST services from .NET client
I'm attempting to gain access to project area resources from a .NET client application. However, form-based authentication isn't working for some reason. From my debugging, it appears the requests are generated correctly but the request for j_security_check times out. It may be a session management problem but I've verified that the session id is correctly included in the Cookie: header. I can manually authenticate via URL from a browser window using the same URL string. Any ideas?
|
2 answers
Nevermind...I figured it out. It was a minor mistake, but difficult to find.
|
For those who are looking for sample C# code for authentication can refer to following article - http://nkumar83.wordpress.com/2013/06/13/consuming-rtc-rational-team-concert-oslc-apis-using-c-post-1-authentication/
This article has code for form based authentication using WebClient and HTTPWebRequest/HTTPWebResposne classes.
|
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.