auth0
auth0 copied to clipboard
fill auth0_config_file if user calls shinyAppAuth0
Related to thinkr-open/golem#327
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: ...
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()"