Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diegoefe/shinydbauth
Simple DB authentication mechanism for single 'Shiny' applications with "Change password" interface
https://github.com/diegoefe/shinydbauth
Last synced: 3 months ago
JSON representation
Simple DB authentication mechanism for single 'Shiny' applications with "Change password" interface
- Host: GitHub
- URL: https://github.com/diegoefe/shinydbauth
- Owner: diegoefe
- Created: 2023-12-06T12:02:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-21T04:52:06.000Z (5 months ago)
- Last Synced: 2024-08-21T12:18:26.515Z (4 months ago)
- Language: R
- Size: 295 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
Awesome Lists containing this project
- jimsghstars - diegoefe/shinydbauth - Simple DB authentication mechanism for single 'Shiny' applications with "Change password" interface (R)
README
[![version](https://www.r-pkg.org/badges/version/shinydbauth)](https://CRAN.R-project.org/package=shinydbauth)
[![cranlogs](https://cranlogs.r-pkg.org/badges/shinydbauth)](https://CRAN.R-project.org/package=shinydbauth)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)Simple authentification mechanism for single 'shiny' applications.
Provides a simple authentification and **password change** functionality that is performed calling user provided functions that typically access some database backend.
The source code of core applications is protected once authentication is successful.**ATENTION**: This project uses borrowed and modified code from [ShinyManager](https://github.com/datastorm-open/shinymanager/) which provides a more extended, generic and completed authentication solution.
### Installation
Install from CRAN with :
```r
install.packages("shinydbauth")
```Or install development version from GitHub :
```r
remotes::install_github("diegoefe/shinydbauth")
```### Demo application
Go [here](https://github.com/diegoefe/shinydbauth-demo)
### Available languages
- English
- Español### Password validity period
Using ``options("shinydbauth.pwd_validity")``, you can set password validity period. It defaults to ``Inf``. You can specify for example ``options("shinydbauth.pwd_validity" = 90)`` if you want to force user changing password each 90 days.
### Failure limit
Using ``options("shinydbauth.pwd_failure_limit")``, you can set password failure limit. It defaults to Inf. You can specify for example ``options("shinydbauth.pwd_failure_limit" = 5)`` if you want to lock user account after 5 wrong password.
### Relevant R documentation
````
require(shinydbauth)# shiny integration
?secure_app
?create_server
?auth_ui # ui definition# change labels / language
?set_labels````
### Customization
You can customize the module (css, image, language, ...).
````
?secure_app
?auth_ui
?set_labels
````