auth0 icon indicating copy to clipboard operation
auth0 copied to clipboard

fill auth0_config_file if user calls shinyAppAuth0

Open jtrecenti opened this issue 5 years ago • 2 comments

Related to thinkr-open/golem#327

jtrecenti avatar Jan 02 '20 18:01 jtrecenti

I facing this same issue, is this resolved? I tried using the

options("golem.app.prod" = TRUE, shiny.port = 8080,
             auth0_config_file = system.file("app/_auth0.yml", package = "golem.auth0"))

in the app.R, but I am still not able to logout. I get the following error:

Warning: Error in auth0_find_config_file: Didn't find any YML configuration file. There are two possible explanations: ...

chintanp avatar Sep 14 '20 09:09 chintanp

I figured out that the issue in my case was that app.R is not accessed at all since I use a Dockerfile for deployment. So I had to add the above code manually to the Dockerfile generated from golem, and that worked for me. So the final line of the Dockerfile is now:

CMD R -e "options('golem.app.prod' = TRUE, 'shiny.port'=80, shiny.host='0.0.0.0', auth0_config_file = here::here('inst', 'app', '_auth0.yml'));evides::run_app()"

chintanp avatar Sep 16 '20 06:09 chintanp