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
2
1
can you say more about what the ideal workflow is? if you can set a cookie, you can allow/deny access based on cookie presence docs.netlify.com/routing/red…
2
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.

Jul 23, 2021 · 10:32 PM UTC

1
This tweet is unavailable
That won't work, I need to prevent access to the files entirely if the user isn't logged in.
1
1