Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Yenrabbit
on Feb 18, 2023
|
parent
|
context
|
favorite
| on:
Password protect a static HTML page
Does anyone know of a way to do something like this but with OAuth? E.g. log in with GitHub to view these docs.
denysvitali
on Feb 18, 2023
[–]
I'd say it's not possible in pure HTML + JS (as in, encryption/ access control performed entirely there).
The solution (with a server) is:
https://oauth2-proxy.github.io/oauth2-proxy/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: