bitly / oauth2_proxy

A reverse proxy that provides authentication with Google, Github or other provider
MIT License
5.1k stars 1.21k forks source link

SPA with mixed anonumous content and auth-required content #629

Open Richard87 opened 5 years ago

Richard87 commented 5 years ago

Hi!

I want to use oauth2_proxy in front of my new web-app, but I was wondering about a use case...

I want all requests to pass trough the proxy anonumously, but I would like the proxy to intersept 401/403 responses, and then redirect to the login-page...

Is this possible?