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 RPE on https://localhost:9444/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
![]()
Ian Barnard (2.0k●6●13)
| 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
Also there are some basic examples for DNG form authentication (i.e. not OIDC) here
|
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.