Description Usage Arguments Details
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
.
1 2 3 4 5 6 | glLoginInput(id, login_button = TRUE)
glReactiveLogin(input, output, session, gitlab_url, project = NULL,
api_version = "v4", success_message = "Gitlab login successful!",
failure_message = "Gitlab login failed!", on_error = function(...) {
stop(failure_message) })
|
id |
shiny namespace for the login module |
login_button |
whether to show a login button (TRUE) or be purely reactive (FALSE) |
input |
from shinyServer function, usually not user provided |
output |
from shinyServer function, usually not user provided |
session |
from shinyServer function, usually not user provided |
gitlab_url |
root URL of gitlab instance to login to |
project |
if not NULL, a codegl_project_connection is created to this project |
api_version |
A character with value either "v3" or "v4" to specify the API version that should be used |
success_message |
message text to be displayed in the UI on sucessful login |
failure_message |
message text to be displayed in the UI on login failure in addition to HTTP status |
on_error |
function to be returned instead of gitlab connection in case of login failure |
glLoginInput
is supposed to be used inside a shinyUI
, while
glReactiveLogin
is supposed to be passed on to callModule
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.