DELETE API from another user?


in order to stop the containers, I created a python script which used the DELETE API from within the server running shinyproxy.

That was working fine with authentication “none”, as I understood that I had to add JSESSIONID as a cookie in the request. I could find the value of JSESSIONID in the log file as it was the username.

I want to change the authentication process to openid. In that case, user is not equal to JSESSIONID.

So, how can I manage that? Or how to declare my DELETE request as an admin?



OK, I have to add --header 'Authorization: Bearer the_access_token"