From 675ad7710cddadb678688d808c7a0487062fd6c7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 14 May 2021 11:13:57 +0200 Subject: [PATCH] outposts/proxy: fix error redeeming code when using non-standard ports Signed-off-by: Jens Langhammer --- outpost/pkg/proxy/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outpost/pkg/proxy/oauth.go b/outpost/pkg/proxy/oauth.go index 93a103241..9ee0bcadd 100644 --- a/outpost/pkg/proxy/oauth.go +++ b/outpost/pkg/proxy/oauth.go @@ -184,7 +184,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) { return } - session, err := p.redeemCode(req.Context(), getHost(req), req.Form.Get("code")) + session, err := p.redeemCode(req.Context(), req.Host, req.Form.Get("code")) if err != nil { p.logger.Errorf("Error redeeming code during OAuth2 callback: %v", err) p.ErrorPage(rw, http.StatusInternalServerError, "Internal Server Error", "Internal Error")