Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bormanjo/Shiny-App-User-Authentication
A template for a user authentication interface in RShiny
https://github.com/bormanjo/Shiny-App-User-Authentication
r rshiny shiny shinyapps user-authentication
Last synced: 3 months ago
JSON representation
A template for a user authentication interface in RShiny
- Host: GitHub
- URL: https://github.com/bormanjo/Shiny-App-User-Authentication
- Owner: bormanjo
- Created: 2018-02-22T11:42:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T12:10:28.000Z (over 6 years ago)
- Last Synced: 2024-05-21T02:53:06.269Z (6 months ago)
- Topics: r, rshiny, shiny, shinyapps, user-authentication
- Language: R
- Size: 7.81 KB
- Stars: 11
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - bormanjo/Shiny-App-User-Authentication - A template for a user authentication interface in RShiny (R)
README
# A Template for Simple User Authentication
A quick reference for those looking to build a simple interface for user login on their Shiny App. Particularly useful for those not looking to pay for the premium ShinyApps login feature.
## Disclosure
I do not study cryptography nor can I say that this is a secure authentication procedure.
## How it Works
- Creates a SQLite database for storing information. The 'users' table houses the username and hashed passwords for all registered users.
- User switches between two renderUI() functions depending on the login status.
- If an account does not exist, the user can create an account. The username is stored in plaintext along with the hashed password text using the sha256() function from the openssl library
- If an account exists, the user can login with the corresponding username and password. The loggedIn status of the app changes and the UI changes.
- After logging in, the user can logout by clicking the action-link in the top right.
- A log of actions can be found in the console.## Potential improvements
- Password resets
- More detailed user registration form (re-type password, user email)
- Verify password authentication with cryptography standards