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

HTTP/1.1 401 Unauthorized - thrown while connecting to RRC through http client

"HTTP/1.1 401 Unauthorized "- thrown while connecting to RRC through http client in my java code.
Is there any solution for the same.

0 votes



One answer

Permanent link
Hi, PLS check the Open Services for Lifecycle Collaboration Workshop for Java sample code ( example04.java ) in how to authenticate with the RM Server.

0 votes

Comments

I use a Reportable Rest URL as shown below:

https://host:9443/rm/publish/resources?projectName=JKE%20Banking%20%28Requirements%20Management%29

My intension is to read all requirements belonging to JKE Banking using rest URL.
But this is giving me an HTTP/1.1 401 error with the following error message

Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://host:9443/jts/oauth-authorize}

Note that I am doing this programmatically by using a java based HTTP client.

Hi Anjaly, Can you confirm whether you are doing the authentication as suggested in the example? Have you accessed any of the CLM servers before via the Java API?

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
× 12,023

Question asked: Oct 01 '13, 4:01 a.m.

Question was seen: 8,005 times

Last updated: Oct 01 '13, 12:47 p.m.

Confirmation Cancel Confirm