From eba4f370853a8fdc88792eb633ce59a08b16f2a7 Mon Sep 17 00:00:00 2001 From: Rob McQueen Date: Sun, 3 Dec 2017 14:48:43 -0800 Subject: [PATCH] fix redirect on login button applies fix indicated here: https://github.com/bitly/oauth2_proxy/pull/395 --- oauthproxy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oauthproxy.go b/oauthproxy.go index dd2b58e9e..ead519b86 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -410,6 +410,11 @@ func (p *OAuthProxy) ManualSignIn(rw http.ResponseWriter, req *http.Request) (st } func (p *OAuthProxy) GetRedirect(req *http.Request) (redirect string, err error) { + if p.SkipProviderButton { + redirect = req.RequestURI + return + } + err = req.ParseForm() if err != nil { return