numbats / numbathackathon

Repository for the NUMBAT Hackathon, 2020
1 stars 0 forks source link

Adding basic password protection to quarto sites --> `staticrypt` + GitHub Actions #41

Open cynthiahqy opened 3 months ago

cynthiahqy commented 3 months ago

Quarto sites are fun and great, but some sort of password protection would be handy -- probably doesn't need to be full-on authentication via Google login or similar. Some possibilities to explore:

Related to a previous attempt last year #31 with OAuth

cynthiahqy commented 3 months ago
robjhyndman commented 3 months ago

A solution is provided here: https://github.com/robjhyndman/quarto-password

cynthiahqy commented 3 months ago

@robjhyndman page not found at that link -- I think intentional; maybe you meant to link to the deployed site???

THIS? https://robjhyndman.github.io/quarto-password

robjhyndman commented 3 months ago

Oops. I still had it private. It should be visible now.

cynthiahqy commented 3 months ago

I think the password is.. password, but when I type it in and press decrypt nothing happens (on safari or Firefox..)

robjhyndman commented 3 months ago

Hmm. It's working on Chrome and Vivaldi. But it also doesn't work on Firefox for me. Maybe the javascript is being blocked?

robjhyndman commented 3 months ago

Also working on Microsoft Edge.

robjhyndman commented 3 months ago

Working now on Firefox

cynthiahqy commented 3 months ago

@harriet-mason Here are instructions for adding it to an existing quarto site: https://github.com/robjhyndman/quarto-password/issues/1#issue-2327782087