Open KZARCA opened 5 years ago
Using the web interface, the access token given by SHINYPROXY_OIDC_ACCESS_TOKEN is opaque. In https://github.com/openanalytics/shinyproxy-config-examples/tree/master/08-api-oauth2, the audience is different, therefore the access token generated is JWT.
I want to use the API to stop a proxy started with the web interface. It seems that SHINYPROXY_OIDC_ACCESS_TOKEN is not working using --header 'Authorization: Bearer the_access_token'". Is it because it's an opaque token?
--header 'Authorization: Bearer the_access_token'"
Hi, this is an old issue, but this is supported by ShinyProxy if you configure OAuth (in addition to OpenID), see https://shinyproxy.io/documentation/configuration/#api for more information.
Using the web interface, the access token given by SHINYPROXY_OIDC_ACCESS_TOKEN is opaque. In https://github.com/openanalytics/shinyproxy-config-examples/tree/master/08-api-oauth2, the audience is different, therefore the access token generated is JWT.
I want to use the API to stop a proxy started with the web interface. It seems that SHINYPROXY_OIDC_ACCESS_TOKEN is not working using
--header 'Authorization: Bearer the_access_token'"
. Is it because it's an opaque token?