I am currently creating a distill website through R (hopefully to transition to Quarto, but still using distill). Currently, the R code is connected with GitHub to publish the website, and this will mainly be for internal use within my department. There is concern with the public availability if the website's link gets out.
I was wondering if there was a way to build into the R code a way to assign usernames and passwords for our personnel, which will force a login portal when someone accesses the link.
I am fairly new to allow of this website development through R, so an example would be very helpful! Thanks!
To manage credentials, you need server-side code. GitHub Pages is static, so there's no server for you to run it on.
You have a couple of options:
htaccess
file