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
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 |