pharmaR / riskassessment

Collaborative Deployment: https://app.pharmar.org/riskassessment/ Risk Assessment Demo App: https://rinpharma.shinyapps.io/riskassessment
https://pharmar.github.io/riskassessment/
Other
101 stars 28 forks source link

Enable ShinyProxy authentication and deployment #821

Open LDSamson opened 1 month ago

LDSamson commented 1 month ago

Currently, there is a deployment option called noncredentialed in the config yaml file. This assumes deployment using Posit Connect:

https://github.com/pharmaR/riskassessment/blob/b91c6e36340fc9f552c79024945079c3da03d107/R/app_server.R#L55-L60

For deployment with the latest version of ShinyProxy, different objects need to be used to read the user and group information from: Instead of session$user and session$groups it would be best to read from HTTP headers (should be something like session$request$HTTP_X_SP_USERID session$request$HTTP_X_SP_USERGROUPS).

It would be great if such a feature can be implemented. If you are interested I can help with that.