Learn R Programming

polished (version 0.8.1)

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()
)

Value

Secured Shiny app UI

Arguments

ui

UI of the application.

sign_in_page_ui

Either NULL, the default (See sign_in_ui_default), or the Shiny UI for a custom Sign In page.

custom_admin_ui

Either NULL, the default, or the Shiny UI for a custom Admin Panel.

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. Set to NULL to exclude the button.

admin_ui_options

list of HTML elements to customize branding of the polished Admin Panel. This argument is only applicable if the custom_admin_ui is set to NULL. If a custom_admin_ui is provided, then these options will be ignored. Valid list element names are title, sidebar_branding, and browser_tab_icon. See default_admin_ui_options, the default.