Set redirect URL path when host is present

This commit is contained in:
Patrick Koenig 2019-03-20 09:25:04 -07:00 committed by GitHub
parent 2070fae47c
commit 6f9eac5190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
}
redirectURL := opts.redirectURL
if redirectURL.String() == "" {
if redirectURL.Path == "" {
redirectURL.Path = fmt.Sprintf("%s/callback", opts.ProxyPrefix)
}