login

Shiny Login Module

https://github.com/jbryer/login

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.7%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Shiny Login Module

Basic Info
Statistics
  • Stars: 25
  • Watchers: 1
  • Forks: 5
  • Open Issues: 3
  • Releases: 2
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License Code of conduct

README.Rmd

---
output: github_document
md_extensions:
  self_contained: true
editor_options:
  chunk_output_type: console
---

#  login: User Authentication for Shiny Applications

**Author:** Jason Bryer, Ph.D. jason@bryer.org  
**Website:** https://jbryer.github.io/login/


[![R-CMD-check](https://github.com/jbryer/login/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jbryer/login/actions/workflows/R-CMD-check.yaml)
`r badger::badge_devel("jbryer/login", color = "blue")`
`r badger::badge_cran_release("login")`
`r badger::badge_doi('10.5281/zenodo.10987876', color = 'blue')`




```{r, echo=FALSE, results='hide', message=FALSE, warning=FALSE, error=FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

library(login)
```

This package provides a framework for adding user authentication to [Shiny](https://shiny.posit.co) applications. This is unique to other authentication frameworks such as [ShinyManager](https://datastorm-open.github.io/shinymanager/) and [shinyauthr](https://github.com/PaulC91/shinyauthr?tab=readme-ov-file) in that it provides tools for users to create their own accounts and reset passwords. This is particularly useful for Shiny applications used to collect data without a pre-existing user management system. User credentials are stored in any database that supports the [DBI](https://dbi.r-dbi.org) interface. Passwords are hashed using MD5 in the browser so that unencrypted passwords are never available to the Shiny server. For an extra layer of security, you can [salt](https://en.wikipedia.org/wiki/Salt_(cryptography)) the password before storing it in the database.

Resources for learning to use the `login` pacakge:

* [Package Website](https://jbryer.github.io/login/)
* [Slides from ShinyConf 2024](https://github.com/jbryer/login/tree/main/inst/slides/login.pdf)

You can install from CRAN:

```{r, eval=FALSE}
install.packages('login')
```

Or to install the latest development version:

```{r, eval=FALSE}
remotes::install_github('jbryer/login')
```

Once installed, there are several demos included:

```{r, eval=FALSE}
# These demonstrate the core login functionality
shiny::runApp(paste0(find.package('login'), '/login_demo_simple/'), port = 2112)
shiny::runApp(paste0(find.package('login'), '/login_template/'), port = 2112)
shiny::runApp(paste0(find.package('login'), '/login_modal/'), port = 2112)
# These demonstrate the user_param_module
shiny::runApp(paste0(find.package('login'), '/user_params/'), port = 2112)
shiny::runApp(paste0(find.package('login'), '/data_viewer/'), port = 2112)
```

## Code of Conduct

Please note that the login project is released with a [Contributor Code of Conduct](https://jbryer.github.io/login/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.

Owner

  • Name: Jason Bryer
  • Login: jbryer
  • Kind: user
  • Location: Albany, NY
  • Company: City University of New York

Assistant Professor and Associate Director, Data Science and Information Systems, School of Professional Studies, CUNY

GitHub Events

Total
  • Issues event: 4
  • Watch event: 6
  • Issue comment event: 4
  • Push event: 10
  • Pull request event: 3
  • Fork event: 4
Last Year
  • Issues event: 4
  • Watch event: 6
  • Issue comment event: 4
  • Push event: 10
  • Pull request event: 3
  • Fork event: 4

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 7
  • Total pull requests: 2
  • Average time to close issues: 5 months
  • Average time to close pull requests: 5 months
  • Total issue authors: 7
  • Total pull request authors: 2
  • Average comments per issue: 0.86
  • Average comments per pull request: 1.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 2
  • Average time to close issues: 6 months
  • Average time to close pull requests: 5 months
  • Issue authors: 3
  • Pull request authors: 2
  • Average comments per issue: 0.67
  • Average comments per pull request: 1.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • bembel (1)
  • teofiln (1)
  • udurraniAtPresage (1)
  • beevabeeva (1)
  • jimbrig (1)
  • jbryer (1)
  • jhk0530 (1)
Pull Request Authors
  • shahronak47 (2)
  • TomRunge95 (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 99 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: login

'shiny' Login Module

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 99 Last month
Rankings
Dependent packages count: 28.0%
Dependent repos count: 36.0%
Average: 49.8%
Downloads: 85.4%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • RSQLite * enhances
  • DBI * imports
  • cookies * imports
  • emayili * imports
  • htmltools * imports
  • shiny * imports
  • stringr * imports
  • utils * imports
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite