Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

secure_server

Secure your Shiny app's server


Description

This function is used to secure your Shiny app's server function. Make sure to pass your Shiny app's server function as the first argument to secure_server() at the bottom of your Shiny app's server.R file.

Usage

secure_server(
  server,
  custom_sign_in_server = NULL,
  custom_admin_server = NULL,
  allow_reconnect = FALSE,
  account_module = NULL,
  splash_module = NULL
)

Arguments

server

A Shiny server function (e.g function(input, output, session) {})

custom_sign_in_server

Either NULL, the default, or a Shiny module server containing your custom sign in server logic.

custom_admin_server

Either NULL, the default, or a Shiny module server function containing your custom admin server functionality.

allow_reconnect

argument to pass to the Shiny session$allowReconnect() function. Defaults to FALSE. Set to TRUE to allow reconnect with shiny-server and Rstudio Connect. Set to "force" for local testing. See https://shiny.rstudio.com/articles/reconnecting.html for more information.

account_module

the server code for the user account module.

splash_module

the server code for the splash page.


polished

Authentication, User Administration, and Hosting for 'shiny' Apps

v0.3.0
MIT + file LICENSE
Authors
Andy Merlino [aut, cre], Patrick Howard [aut], Jimmy Briggs [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.