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

how to programatically log in to rpe/rpeng that uses jts for authentication

Hi, I am need to write an application that logs in to RPE/RPENG,
I have CLM/JTS on https://localhost:9443/jts

I issue a GET on https://localhost:9444/rpeng
which redirects to https://localhost:9444/rpeng/
which redirects to https://localhost:9444/home
which redirects to https://localhost:9443/jts/oauth-authorize?oauth_token..... (with x-com-ibm-teamrepository-web-auth-msg: authrequired)
which redirects to https://https://localhost:9443/jts/secure/authenticated/identity (with authrequired).

I have not been able find any info on jazz.net on how to proceed. It appears to be OAUTH2 and I need to do the oauth dance.
The nearest I get to is https://jazz.net/wiki/bin/view/Main/AppSdkDelegatingAuth but that talks about the "app" itself being registered with JTS.
I am writing a 3rd party app that is logging to RPE/RPENG.

Any help will be most welcome.

1

1 vote



One answer

Permanent link

 Hi Lewis


I've not tried auth to rpeng but assuming it's hooked up to you jts for auth then these suggestions might work.

@jamsden posted a Python example of authenticating to DNG here https://jazz.net/forum/questions/266552/oslc-api-as-power-bi-source-rm-data which looks like it handles both form and OIDC (Jazz Authorization Server) authentication.


There's some background here 
https://jazz.net/library/article/75

Also there are some basic examples for DNG form authentication (i.e. not OIDC) here 
https://jazz.net/forum/questions/81935/using-curl-command-line-to-monitor-performance 

HTH
Ian

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
× 10,938
× 332
× 54
× 35

Question asked: Oct 28 '19, 7:31 a.m.

Question was seen: 2,077 times

Last updated: Dec 05 '19, 7:13 p.m.

Confirmation Cancel Confirm