Setup auth with GitHub Pages
Basic Auth with GitHub Pages¶
- GitHub repo's on the topic:
oauth2-proxy/oauth2-proxy
- A reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain or group.
- https://oauth2-proxy.github.io/oauth2-proxy/
- oauth2-proxy/oauth2-proxy-template
- A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers.
- therootcompany/sso-dev
- GitHub page for OpenID Configuration and JWKs
- https://therootcompany.github.io/sso-dev/
- https://sso-dev.therootcompany.com/
- hamelsmu/oauth-tutorial
- Like GitHub Pages, but you choose who can see it without usernames & passwords.
- Make Static Sites Private With OAuth For Free
- Minimal OAuth Locally
- Serving Your Site
- austenstone/github-actions-oauth
- GitHub OAuth using GitHub Pages & Actions
- https://austenstone.github.io/github-actions-oauth/
- BorczeAngelov/PoC-NgApp-OAuth2-GoogleSheetsAPI
- Angular app integrating OAuth 2.0 with Google Sheets API, deployed on GitHub Pages
- peppelinux/oidc-federation-over-gh-pages
- PoC of a OpenID Federation Trust Anchor that works entirely on github pages
- progrium/gh-pages-auth
- Set up GitHub Pages and Auth0 authentication with minimal effort
- oxyno-zeta/s3-proxy
- S3 Reverse Proxy with GET, PUT and DELETE methods and authentication (OpenID Connect and Basic Auth)
- rwth-acis/openidconnect-signin
- HTML5 elements to authenticate with OpenID Connect providers
- felleslosninger/docs - English OIDC guide
- asdf
- reddit posts:
- static site hosting basic auth
- basic auth on github pages
oauth2-proxy/oauth2-proxy
- A reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain or group.
- https://oauth2-proxy.github.io/oauth2-proxy/
- template: oauth2-proxy/oauth2-proxy-template
- A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers.
- GitHub login for static websites hosted on GitHub pages
The need for a proxy¶
As mentioned in mkdocs/mkdocs#2832, a tool like oauth2-proxy/oauth2-proxy
would need to be put in front of GitHub Pages in order to enable OAuth or OIDC.
- oauth2-proxy/oauth2-proxy
- https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/google
- Using Nginx as an SSL proxy to GitHub Pages
- Blog on GitHub pages that is served from a Sub-URL
- nginx reverse proxy github pages
- NGINX Reverse proxy settings to Github pages