Skip to contents

Function to authenticate the main server.

Usage

authenticate_server(
  user_identification = get_golem_config("user_identification"),
  all_sites = NULL,
  all_roles = get_roles_from_config(),
  credentials_db = get_golem_config("credentials_db"),
  credentials_pwd = Sys.getenv("DB_SECRET"),
  session
)

Arguments

user_identification

Character vector showing the user identification. Is by default set by the user_identification option in the golem-config file.

all_sites

Character vector with all sites. Will be passed on to shinymanager configuration so that data can be restricted to specific sites per user.

all_roles

Named character vector. Used to show all roles that are valid to use in the application. Also used to show all applicable roles in shinymanager admin mode.

credentials_db

Character vector. Path to the credentials database. By default, set by the data_folder and credentials_db options in the golem-config_file.

credentials_pwd

Character vector, containing the database password.

session

Shiny session. Needed to access user information in case of login methods alternative to shinymanager are used.