rednaw / exhibitionDB

Create your own art gallery
https://rednaw.github.io/exhibitionDB/
MIT License
0 stars 0 forks source link

Password protection #50

Open rednaw opened 2 years ago

rednaw commented 2 years ago

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:

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:

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