gl_shiny_login: Shiny module to login to gitlab API

Description Usage Arguments Details

Description

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.

Usage

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

Arguments

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

Details

glLoginInput is supposed to be used inside a shinyUI, while glReactiveLogin is supposed to be passed on to callModule


jirkalewandowski/gitlabr documentation built on May 19, 2019, 11:37 a.m.