Skip to content

Commit

Permalink
Merge pull request #29 from PaulC91/master
Browse files Browse the repository at this point in the history
Add check for Shinyproxy username HTTP header
  • Loading branch information
pvictor authored Oct 16, 2024
2 parents 2278a01 + e5013ac commit 958fff1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ is_sqlite <- function(path) {
get_user_ <- function(session) {
if (!is.null(session$user))
return(session$user)
if (!is.null(session$request$HTTP_X_SP_USERID))
return(session$request$HTTP_X_SP_USERID)
user <- Sys.getenv("SHINYPROXY_USERNAME")
if (!identical(user, "")) {
return(user)
Expand Down

0 comments on commit 958fff1

Please sign in to comment.