git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #108 from pkoenig10/patch-1

Set redirect URL path when host is present

commitca89bb833d4c3d1fa33786d3c75f8dde73f104d9 authorJoel Speed <Joel.speed@hotmail.co.uk> dateWed 20 Mar 2019, 16:41 (8 years ago) parent2070fae6f9eac5
1 file changed+1−1
oauthproxy.go+1−1
oauthproxy.go+1−1
@@ -204,7 +204,7 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
204204 }
205205
206206 redirectURL := opts.redirectURL
207− if redirectURL.String() == "" {
207+ if redirectURL.Path == "" {
208208 redirectURL.Path = fmt.Sprintf("%s/callback", opts.ProxyPrefix)
209209 }
210210