Description Usage Arguments See Also Examples
These functions can be used in a ui.R/server.R framework, modifying the shiny objects to authenticate using Auth0 service with no pain.
1 2 3 | auth0_ui(ui, info)
auth0_server(server, info)
|
ui |
|
info |
object returned from auth0_info. If not informed,
will try to find the |
server |
the shiny server function. |
auth0_info.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # first, create the yml file using use_auth0() function
# ui.R file
library(shiny)
library(auth0)
auth0_ui(fluidPage(logoutButton()))
# server.R file
library(auth0)
auth0_server(function(input, output, session) {})
# console
options(shiny.port = 8080)
shiny::runApp()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.