It's all about the answers!

Ask a question

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


1
1
Lewis Tsao (2174963) | asked Oct 28 '19, 7:31 a.m.
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.

One answer



permanent link
Ian Barnard (2.0k613) | answered Dec 05 '19, 7:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Dec 05 '19, 7:13 p.m.

 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

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.