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

DNG LQE Authentication

 Hi 
I am trying to execute a SPARQL query from my java application. I have authenticated to the DNG server using the post call to the URL https://serever:port/jts/j_security_check. I am able to fetch artifacts from DNG. Now I wanted to connect to LQE but getting 401 error. I read some where we need to give the redirect ul as a header. How can i get the url

0 votes



2 answers

Permanent link
Hi,  Are you using the sample code that uses version as a parameter for method:
sendGetForSecureDocument(String serverURI, HttpGet request, String login, String password, HttpClient httpClient, String jtsURI, float version), if so try by passing 4.0f as version when logging to LQE.

0 votes

Comments

 I dont have a sample code with me. My code is authenticating and fetchinf data from DNG , but giving 401 with LQE https://ser.dng.com is the dng basic url and https://ser.dng.com/lqe is the lqe 

HTTP/1.1 401 Unauthorized [Date: Tue, 05 Apr 2016 05:05:13 GMT, X-Powered-By: Servlet/3.0, X-jazz-web-oauth-url: https://ser.dng.com/jts/oauth-authorize?request_token_secret=QzHrQHbUhg2EsjhloF48zvDIi6Ckkd,asBDmF3LH3auJo&oauth_token=b5a44f61d0a7b4d7f813547ccjif171136e, WWW-Authenticate: OAuth realm="https://ser.dng.com/lqe", Keep-Alive: timeout=10, max=99, Connection: Keep-Alive, Transfer-Encoding: chunked, Content-Type: text/plain; charset=UTF-8, Content-Language: en-US]. I am gettign a 200 ok response on the get call to X-jazz-web-oauth-url

In the OSLC Workshop ( https://jazz.net/library/article/635 ) there is sample code ( RM sample 04 ) that authenticate with Rm which has been successfully used to authenticate with lqe.


Permanent link

 Anyone been able to do this?

0 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

Question asked: Apr 04 '16, 5:43 a.m.

Question was seen: 2,473 times

Last updated: Feb 26 '19, 5:46 p.m.

Confirmation Cancel Confirm