Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password protection #50

Open
rednaw opened this issue Dec 29, 2021 · 0 comments
Open

Password protection #50

rednaw opened this issue Dec 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@rednaw
Copy link
Owner

rednaw commented Dec 29, 2021

We want users to authenticate (enter password) before accessing the data. There is no standard solution for this for static sites like those hosted on GitHub Pages.

A possible solution is to split the site in a public and private repository:

  • All static HTML, CSS and Javascript go in the public repository
  • All data (*.mer and *.sqlite3 files) goes in the private repository

The public repository serves the site and contains a login form, users login with their Github credentials after which the site uses those credentials to fetch the *.sqlite files from the private repo using the GitHub API.

Customer onboarding is done as follows:

  • User creates a Github account if they not have any
  • We grant that account access to the private repo

Basically this outsources the whole user administration infrastructure to GitHub

A description of this setup can be found at https://rmannibucau.metawerx.net/github-pages-authentication.html

@rednaw rednaw changed the title Authentication Password protection Dec 29, 2021
@rednaw rednaw added the enhancement New feature or request label Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant