Hi there 👋
Welcome the the Octauthent demo!
This simple website is composed of 2 pages:
- A home page, accessible to everyone 🔓
- A private page, protected by Octauthent 🔒
If you want to access the private page, you'll need the following credentials:
username: demo
password: octauthent
This website is nothing more than 2 HTML files hosted on GitHub Pages!
There is absolutely no code related to authentication, so everybody could (normally) access the private page
However, thanks to Octauthent, here is what happens when you access demo.octauthent.com/private
from your browser:
- A DNS server recognizes the domain and responds with a Cloudflare IP
- Your browser asks for the page to the Cloudflare IP it received
- Cloudflare runs the Octauthent code to know what to do
- If Octauthent decides that you are not allowed, Cloudflare responds with a customized login form
- If Octauthent decides that the page can be accessed:
- Cloudflare asks Github Pages for the content of
demo.octauthent.com/private
- Github recognizes the address and responds with the page content
- Cloudflare sends the response back to your browser
- Cloudflare asks Github Pages for the content of