Closed
Description
Hello, i have installed the package well and created my app. Unfortunately after logging in successfully,I am not able to view my UI elements.
Honestly, this has brought down my whole project down . Can someone help me.
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
library(shinymanager)
library(lubridate)
ui.r
ui <- dashboardPagePlus(title = "myapp",skin = 'purple',
collapse_sidebar = T,sidebar_background = "light",enable_preloader = T,loading_duration = 1,md = T,
header <- dashboardHeaderPlus(),
sidebar = dashboardSidebar(collapsed = TRUE),
body = dashboardBody(),
footer = dashboardFooter(left_text = HTML(paste("©",year(Sys.Date()))),
right_text = Sys.time())
)
ui <- secure_app(ui)
server.r
credentials <- data.frame(
user = c("1", "2"), # mandatory
password = c("", ""), # mandatory
start = c("2019-04-15"), # optinal (all others)
expire = c(NA, "2019-12-31"),
admin = c(FALSE, TRUE),
comment = "Simple and secure authentification mechanism
for single ‘Shiny’ applications.",
stringsAsFactors = FALSE
)
server <- function(input, output, session) {
# call the server part
# check_credentials returns a function to authenticate users
res_auth <- secure_server(
check_credentials = check_credentials(credentials),keep_token = T
)
output$auth_output <- renderPrint({
reactiveValuesToList(res_auth)
})
# your classic server logic
}
Metadata
Metadata
Assignees
Labels
No labels