Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fill auth0_config_file if user calls shinyAppAuth0 #59

Open
jtrecenti opened this issue Jan 2, 2020 · 2 comments
Open

fill auth0_config_file if user calls shinyAppAuth0 #59

jtrecenti opened this issue Jan 2, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jtrecenti
Copy link
Member

Related to ThinkR-open/golem#327

@jtrecenti jtrecenti added the enhancement New feature or request label Jan 2, 2020
@jtrecenti jtrecenti self-assigned this Jan 2, 2020
@chintanp
Copy link

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
Copy link

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()"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants