Skip to content

Commit

Permalink
set redirect to req.RequestURI if ProxyPrefix is not equal to /oauth …
Browse files Browse the repository at this point in the history
…and skip provider button
  • Loading branch information
clyang82 committed Dec 7, 2021
1 parent d347e1a commit bbb2516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bbb2516

Please sign in to comment.