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

Invalid Groups-Expression in Web Service #506

Closed flash0926 closed 5 months ago

flash0926 commented 5 months ago

image I followed the official tutorial to prepare the configuration and deployed a Flask application for web verification. The web returns the JSON response as per the official tutorial. However, the application does not behave as expected and does not only display the apps that the current user has permissions for, but instead shows all the apps. Alternatively, is there a plan to make it so that all apps are displayed to all users, but only those with permissions can run the apps, and those without permissions receive a prompt? This my yaml. ` proxy: title: MyShinyProxy logo-url: https://www.openanalytics.eu/shinyproxy/logo.png template-path: ./templates/2col port: 8080 authentication: webservice webservice: authentication-url: http://127.0.0.1:5000/login_auth authentication-request-body: '{"username": "%s", "password": "%s"}' groups-expression: "#{json.get('data').get('groups')}"

admin-groups: admins

users:

logging: file: shinyproxy.log `

image