Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ShinyProxy authentication and deployment #821

Open
LDSamson opened this issue Aug 30, 2024 · 0 comments
Open

Enable ShinyProxy authentication and deployment #821

LDSamson opened this issue Aug 30, 2024 · 0 comments

Comments

@LDSamson
Copy link
Collaborator

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

} else if (isFALSE(get_db_config("use_shinymanager"))) {
res_auth <- reactiveValues()
res_auth[["admin"]] <- FALSE
res_auth[["user"]] <- session$user %||% "anonymous"
res_auth[["role"]] <- intersect(unlist(session$groups, use.names = FALSE), dbSelect("select user_role from roles")[[1]]) %||% "default"
} else {

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.

@LDSamson LDSamson changed the title Enhancement: enable ShinyProxy authentication and deployment Enable ShinyProxy authentication and deployment Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant