From 62719c13addda9e794c384b296a28339889a6577 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Tue, 17 Oct 2023 16:08:18 -0400 Subject: [PATCH] fix redirect issue for oauth frontend --- endpoints/publicProxy/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/publicProxy/http.go b/endpoints/publicProxy/http.go index c98060ff0..b3dcd6b7e 100644 --- a/endpoints/publicProxy/http.go +++ b/endpoints/publicProxy/http.go @@ -352,7 +352,7 @@ func oauthLoginRequired(w http.ResponseWriter, r *http.Request, shrToken string, if pcfg.Oauth != nil && pcfg.Oauth.RedirectHttpOnly { scheme = "http" } - http.Redirect(w, r, fmt.Sprintf("%s://%s.%s:%d/%s/login?targethost=%s&checkInterval=%s", scheme, shrToken, pcfg.Oauth.RedirectHost, pcfg.Oauth.RedirectPort, provider, url.QueryEscape(target), authCheckInterval.String()), http.StatusFound) + http.Redirect(w, r, fmt.Sprintf("%s://%s:%d/%s/login?targethost=%s&checkInterval=%s", scheme, pcfg.Oauth.RedirectHost, pcfg.Oauth.RedirectPort, provider, url.QueryEscape(target), authCheckInterval.String()), http.StatusFound) } func resolveService(hostMatch string, host string) string {