openanalytics / shinyproxy

ShinyProxy - Open Source Enterprise Deployment for Shiny and data science apps
https://www.shinyproxy.io
Apache License 2.0
525 stars 151 forks source link

Opaque access token with auth0 #154

Open KZARCA opened 5 years ago

KZARCA commented 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?

LEDfan commented 6 months ago

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.