It's all about the answers!

Ask a question

Access to DOORS with OSLC


Nicola Carusi (281011) | asked Jun 20 '14, 8:58 a.m.
retagged Jun 22 '14, 9:46 p.m. by Donald Nong (14.5k614)

Hi guys!

I'm trying to get the http://localhost:8080/dwa/rm/discovery/catalog but first I have to authenticate myself with OAuth.

I'm following this steps:

Step1

GET request to http://dwa.amsspa.it:8080/dwa/oauth-request-token

with this header:

oauth_consumer_key: nicola

oauth_nonce: MUT31K635E1

oauth_signature_method: HMAC-SHA1

oauth_timestamp: current time stamp

oauth_version: 1.0

oauth_signature: my signature

I'm getting the following response:

oauth_token=0d4be670-097d-491c-bfc8-cf3e856bf336&oauth_token_secret=RhGe2q75%2BHHMZMKnZA72zbEToTSuTwVZIBO%2FjeOHuRG%2BAsT5IpG6lpv217TwdNONhTMUJQDK00WYOMlpofFhTPRXtW5MJKVdE122t9AUaBU%3D

Step 2

URL: http://dwa.amsspa.it:8080/dwa/oauth-authorize-token

At this point if I make a GET request I obtain the following:

Status code: 200

Body: an HTML form to authenticate

If a make a POST request I obtain the following:

Status code: 302

Location: http://dwa.amsspa.it:8080/dwa/oauth/oauth_login.jsp

Body: empty

The question is: which is the correct step? And the following one?

Thank you

Nicola

4 answers



permanent link
Donald Nong (14.5k614) | answered Jun 22 '14, 9:49 p.m.
Hi Nicola,

I retag your post since you are not using RDNG, but DOORS Web Access. Check below articles and see if you can find any hints.
https://jazz.net/forum/questions/80608/oslc-access-to-ressources-how-to
http://www.ibm.com/developerworks/rational/library/oslc-services-rational-doors/index.html?ca=drs

If you cannot get a satisfactory answer here, you may consider posting on the developerWorks forum which is also quite active.
https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000001499

permanent link
Nicola Carusi (281011) | answered Jun 27 '14, 10:35 a.m.

Hi Donald,

I'm using exactly your article and I'm stopping to step2.

What I am not able to understand is: what does it means

"Login to DWA using the following URL, to authorize the oauth_token obtained in the previous step:
https://<dwaServer>:<dwaPort>/dwa/oauth-authorize-token?oauth_token=<request_token>"

Is it necessary a POST or a GET request?

Do I have to insert all the headers for OAuth?

Do I have to insert also username and Password?

Thanks



Comments
Donald Nong commented Jun 29 '14, 10:09 p.m.

It seems to be expected and you do need to use your username and password to authenticate. See below post for some similar cases.
https://jazz.net/forum/questions/80608/oslc-access-to-ressources-how-to


permanent link
Giovanni Soares (111) | answered Feb 11 '21, 6:53 a.m.
edited Feb 11 '21, 6:54 a.m.

 @NicolaCarusi


Ciao,

The easiest way I've found was to use the web browser.

Go to https://<dwaServer>:<dwaPort>/dwa/oauth-authorize-token?oauth_token=<request_token>
Jazz will prompt for you user name and password, if you login successfully, it will ask if you ant to authorize the token and you click yes at the popup message. Step 2 finished.

Now you need Step 3. Exchange the request token for an Access token and here I cannot hel since I'm blocked here with oauth_problem=signature_invalid :(


Comments
Giovanni Soares commented Feb 11 '21, 6:55 a.m.

 ATTENTION: /dwa/ in the URL can change to other name depending on the installation at your company


permanent link
arpa software (111) | answered Feb 15 '21, 5:29 a.m.
edited Feb 15 '21, 5:30 a.m.
I had the same problem, it was solved. Thankful.
https://www.arpaco.ir

        


Your answer


Register or 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.