-
Notifications
You must be signed in to change notification settings - Fork 132
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
Use auth0 R package in Golem App #327
Comments
Hey @henrique1008 A golem works just like any shiny app, so yes if it's possible in shiny it's possible in golem. Can you share what you have tried so far? |
Good Morning Sorry for the delay in returning. I initially tried to change the run_app.R file.
seguindo as instruções do link: auth0 I will try to build a code example and upload to github in the afternoon, with the entire golem structure, including attempted authentication. |
Hi @henrique1008 , I use
#' Run the Shiny Application
#'
#' @export
#' @importFrom golem with_golem_options
run_app_auth0 <- function(...) {
with_golem_options(
app = auth0::shinyAppAuth0(
ui = app_ui(), # these parenthesis are important
server = app_server,
config_file = system.file("app/_auth0.yml", package = "<PKG_NAME>")
),
golem_opts = list(...)
)
}
I think it's a good practice to keep the |
Hi @jtrecenti , I tested, and one thing that didn't work was logout I uploaded a repository on github with a test golem with what I did to deploy Auth0 authentication. link: repositório Auth0 authentication credentials password: Testeauth2020 |
It works if you set options("golem.app.prod" = TRUE, shiny.port = 8080,
auth0_config_file = system.file("app/_auth0.yml", package = "golem.auth0")) I think that the actual setup it is not ideal because the path is already set inside |
Thanks so much for the help, everything is working now. |
The problem seems to be solved (thanks a lot @jtrecenti). Closing now |
Good morning, I'm having trouble incorporating an auth0 authentication package in Golem. It is possible ?
The text was updated successfully, but these errors were encountered: