Python Flask app - RTC programmatic authentication issue
Hi everyone! I am implementing integration with RTC v6.0.5 for my Python Flask app. I am using pre-built python package RTCClient for logging and dealing with workitems (http://rtcclient.readthedocs.io/en/latest/quickstart.html). Problem is that POST request generated by the package fails:
2018-04-13 20:36:58,635 DEBUG urllib3.connectionpool: https://host:443 "POST /jazz/authenticated/j_security_check HTTP/1.1" 302 0
Is "/authenticated/j_security_check" wrong endpoint to pass authentication? In the request application passes credentials and header like this - {'Cookie': 'JazzFormAuth=Form; Path=/jazz; Secure', 'Content-Type': 'application/x-www-form-urlencoded'}.
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Apr 17 '18, 5:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 17 '18, 5:10 a.m. It is a third party library
Comments Yes, the library is 3rd party library, but form its author I see it was tested well on RTC 6.0 (not sure how much it's different from 6.0.5. in terms of auth mechanism). I may come at the end to my own authorization coding, but wanted first try to re-use existing solution.
Pavel Veremenyuk
commented Apr 17 '18, 3:32 p.m.
After some debugging iof 3rd party lib I see that in response for POST request to /authenticated/j_security_check app gets response with 404 error with redirect url to https://host/jazz/authenticated/ |
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.