okay Internet, I need your suggestions: I have a static website that I can't modify, and I want to host it on some platform that I can tie to an arbitrary OpenID Connect provider so that only certain people can access it. What's the easiest way to do this?
9
2
11
I have spent no joke like 4 hours trying to do this on @netlify already today and cannot for the life of me figure it out

Jul 23, 2021 · 10:21 PM UTC

2
1
Ideally I'd have something like a Netlify function run on every incoming request to check the presence of a cookie, validate it, and based on the result, either send an HTTP redirect to start an OIDC flow, or return the static file requested.
1
If you can't modify it, how do you have access to deploy it somewhere else?
1
It's a static site, so it's a pile of files. I can push those files around as much as I want, but changing them is not really feasible