Could the app be able to see the user info


#1

Hi,

We would like to implement some user controls on an app. For example, only authorized user can select certain items in a selection list. However, this requires that the app itself knows the current user.

I guess the answer is no for now. Am I right?

Thanks.

Xianying


#2

Get it from configuration. Env var SHINYPROXY_USERNAME will be pass to shiny apps.

the user name of the authenticated user is made available to the Shiny application via the environment variable SHINYPROXY_USERNAME


#3

@shrektan

Thanks for providing the answer to your question. In the mean time (since version 1.0.0) we also expose the environment variable SHINYPROXY_USERGROUPS which provides the list of groups the authenticated user is a member of.

More info on this release at

https://www.shinyproxy.io/downloads/

Best,
Tobias


#4

Thanks, I’ve noticed that.