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
2018-04-13 20:36:58,813 DEBUG urllib3.connectionpool: https://host:443 "GET /jazz/authenticated/ HTTP/1.1" 404 None
2018-04-13 20:36:58,815 ERROR client.RTCClient: Failed POST request at <https://host/jazz/authenticated/j_security_check> with response: Error 404: Not Found
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
It is a third party library
The web site has no dates of when the library was created or maintained
You provide nothing, not even the call
I am baffled.
Unless you started with RTC 1.0 or 2.0 or failed with the install process I would say you are basically not providing a correct RTC repository URI.
Second option is the Python library is over 5 years old.