HTTP POST: content-api Auth Using Access Tokens

#1

My Current Python code to download a file is like this:

content_url = f"http://ip:port/flowable-task/content-api/content-service/content-items/file_name/data"
file_to_save = "file_path"
r = requests.get(url=content_url, auth=("uname", "pwd", ))

I dont wish to use username and password, is there a auth token that i can use?


I did find this Authentication for api rest BUT I deploy flowable via docker and am not interested to change the spring code.

#2

Is there a reason you can’t include a Authorization: Basic …​== HTTP-header when performing requests? Something similar to this for the admin/test user?

Authorization: Basic YWRtaW46dGVzdA==