Problem while getting service provider url from RTC 7.0.2 tool with authorization server
Downloaded this OSLC4Net build and was trying to retrieve data from RTC 7.0.2. The code is getting authenticated at client.FormLogin() and returning a OK status code. But when it is trying to fetch service provider URL based on catalog URL for the respective project area by the "client.LookupServiceProviderUrl(catalogUrl, projectArea);" it is giving the following response --
{"OSLCC004: The requested resource could not be found. "}
{StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Strict-Transport-Security: max-age=31536000
WWW-Authenticate: Basic realm="JSA"
WWW-Authenticate: Bearer realm="JSA"
X-Powered-By: Servlet/3.0
X-JSA-AUTHORIZATION-URL: https://jazz702-jas.in.kovair.com:9643/oidc/endpoint/jazzop
Set-Cookie: JSA_CSRF_b179c159-8dc3-4ecf-910b-0fe1c5969e5c=153579c3-8bea-44af-9d68-947497117191; Path=/ccm; Secure
Date: Tue, 15 Mar 2022 16:28:58 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Content-Length: 0
Content-Language: en-US
Expires: Thu, 01 Dec 1994 16:00:00 GMT
}}
Do we need to provide any other header or any other mechanism in order to fetch data from RTC 7.0.2(authorization server) via OSLC4Net? Please provide the required fix for the above problem
|
3 answers
David Honey (1.8k●1●7)
| answered Mar 15 '22, 9:25 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER OSLC4Net is not Jazz code - it's part of the OSLC community. So it's unlikely that Jazz developers in this forum will be able to answer questions about its code usage. The OSLC Forum might be a better place to ask. A 401 response usually means you have not authorised with the server. I do not know how OSLC4Net handles authorization.
|
Ian Barnard (2.3k●7●14)
| answered Mar 17 '22, 5:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Mar 17 '22, 5:28 a.m. Hi
The headers in your response indicate your client code is in fact not authenticated. Your (or OSLC4NET's?) authentication code should see the 401 and needs to follow the X-JSA-AUTHORIZATION-REDIRECT - look for that header in this doc to see what's involved https://jazz.net/wiki/bin/view/Main/NativeClientAuthentication
But questions about how this is done using OSLC4NET are unlikely to be answered here.
HTH
Ian
|
That is so nonsense that I have to login to be able to access https://jazz.net/wiki/bin/view/Main/NativeClientAuthentication
FACEPALM
Yeah, guys, hide your documentation from searching engines, let your users suffer
Comments
Ralph Schoon
commented Apr 03, 8:39 a.m.
| edited Apr 03, 8:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The developer wiki is not meant to be documentation, there is just a bunch of stuff that can serve as documentation. I think the login has legal reasons. You had to agree to the terms and conditions when creating your user Account.
Alex K.
commented Apr 03, 9:08 a.m.
Thanks |
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
If you ask on the OSLC Forum, consider to provide information such as