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

secure_ui

Secure your Shiny UI


Description

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

Usage

secure_ui(
  ui,
  sign_in_page_ui = NULL,
  custom_admin_ui = NULL,
  custom_admin_button_ui = admin_button_ui(),
  admin_ui_options = default_admin_ui_options(),
  account_module_ui = NULL,
  splash_module_ui = NULL
)

Arguments

ui

UI of the application.

sign_in_page_ui

Either NULL, the default (See sign_in_ui_default), or the HTML, CSS, and JavaScript to use for the UI of the Sign In page.

custom_admin_ui

Either NULL, the default, or a list of 2 Shiny module UI functions to add additional shinydashboard tabs to the polished Admin Panel. The list must be in the form:

list(
  "menu_items" = <your_custom_admin_menu_ui("custom_admin")>,
  "tab_items" = <your_custom_admin_tabs_ui("custom_admin")>
)
custom_admin_button_ui

Either admin_button_ui(), the default, or your custom UI to take Admins from the custom Shiny app to the polished Admin Panel.

admin_ui_options

list of HTML elements to customize branding of the polished Admin Panel. Valid list element names are title, sidebar_branding, and browser_tab_icon. See default_admin_ui_options, the default.

account_module_ui

the UI portion for the user's account module.

splash_module_ui

the UI portion for the splash page module.

Value

Secured Shiny app UI


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.