The UI contains a login and a password field as well as an (optional)
login button. The server side function returns a reactive GitLab connection, just as gl_connection()
and gl_project_connection()
.
glLoginInput(id, login_button = TRUE)
glReactiveLogin(
input,
output,
session,
gitlab_url,
project = NULL,
api_version = 4,
success_message = "GitLab login successful!",
failure_message = "GitLab login failed!",
on_error = function(...) {
stop(failure_message)
}
)
shiny namespace for the login module
whether to show a login button (TRUE) or be purely reactive (FALSE)
from shinyServer function, usually not user provided
from shinyServer function, usually not user provided
from shinyServer function, usually not user provided
root URL of GitLab instance to login to
if not NULL, a [gl_project_connection]
is created to this project
A character with value either "3" or "4" to specify the API version that should be used
message text to be displayed in the UI on successful login
message text to be displayed in the UI on login failure in addition to HTTP status
function to be returned instead of GitLab connection in case of login failure
An input or output element for use in shiny UI.
glLoginInput
is supposed to be used inside a shinyUI
, while
glReactiveLogin
is supposed to be passed on to shiny::callModule()