Skip to content

Commit

Permalink
Comments out .rs.api.getDatabricksToken code for now
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Nov 15, 2023
1 parent c0be58e commit 83323b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inst/rstudio/shinycon/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ connection_spark_ui <- function() {

token_source <- function() {
t_source <- ""
if (exists(".rs.api.getDatabricksToken")) {
getDatabricksToken <- get(".rs.api.getDatabricksToken")
if (!is.null(getDatabricksToken(workspace))) {
t_source <- "oauth"
}
}
# if (exists(".rs.api.getDatabricksToken")) {
# getDatabricksToken <- get(".rs.api.getDatabricksToken")
# if (!is.null(getDatabricksToken(workspace))) {
# t_source <- "oauth"
# }
# }
if (t_source == "" && !is.na(Sys.getenv("DATABRICKS_TOKEN", unset = NA))) {
t_source <- "token"
}
Expand Down

0 comments on commit 83323b3

Please sign in to comment.