diff --git a/oauthproxy.go b/oauthproxy.go index c92f9633a..0d49c531f 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -504,7 +504,7 @@ 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 { + if p.SkipProviderButton && p.ProxyPrefix != "/oauth" { redirect = req.RequestURI return }