Skip to content

Commit

Permalink
Merge pull request #2 from Sage-Bionetworks/dockerization
Browse files Browse the repository at this point in the history
perf: make APP_REDIRECT_URL as environment variable
  • Loading branch information
danlu1 committed Apr 10, 2023
2 parents a6e1630 + 0bf7dc1 commit 30db80a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/mod-synapse-oauth.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ authorization_url <- NULL
#' @param pkgname default R .onLoad() parameter
.onLoad <- function(libname, pkgname) {
synapse <<- reticulate::import("synapseclient", delay_load = TRUE)
if (!interactive()) {
#if (!interactive()) {
setup_global_oauth_vars(
app_url = get_golem_config("app_url"),
app_url = Sys.getenv("APP_REDIRECT_URL"),
client_name = Sys.getenv("client_name"),
client_id = Sys.getenv("client_id"),
client_secret = Sys.getenv("client_secret")
)
}
#}
}

#' @title Synapse Oauth Module
Expand Down

0 comments on commit 30db80a

Please sign in to comment.