Olá, estou tentando autenticar um simples aplicativo shiny com o Auth0. Segui todos os passos, porém, o shiny teima em abrir o app em porta aleatória, e não na determinada no arquivo _auth0.yml.
Commo devo proceder? segue script.
#---------------- script shiny
library(shiny)
library(auth0)
ui <- fluidPage(
plotOutput(“grafico”),
logoutButton()
)
server <- function(input, output, session) {
output$grafico <- renderPlot({
plot(cars)
})
}
auth0::shinyAppAuth0(ui, server)
#---------------- abaixo _auth0.yml
name: myApp
shiny_config:
local_url: http://127.0.0.1:8080
remote_url: ‘’
auth0_config:
api_url: https://jonates.us.auth0.com
credentials:
key: “aqui coloquei minha key”
secret: “aqui coloquei a secret”
#--------------------------------------------------------
Já tentei de tudo:
Inserir “options(shiny.port = 8080)” logo após script ;
auth0::shinyAppAuth0(ui, server,options = list(shiny.port = 8080))
auth0::shinyAppAuth0(ui, server,options = list(port = 8080))
runApp(shiny.port = 8080, host = ‘http:// 127.0.0.1’)
runApp(port = 8080, host = ‘http:// 127.0.0.1’)
Onde estou errando? O que preciso acrescentar no script para que a porta fique fixa e abra na configurada no Auth0?
Obrigado.