git.iko.soy/typeable/oauth2-proxy
on master help sign in
fixing code redemption error string logging
commit1a8bd70b4641d789a519efa1828f569a1dc20e83 authortimothy-spencer <timothy.spencer@gsa.gov> dateTue 7 May 2019, 10:47 (7 years ago) parent8519e7c
1 file changed+1−1
oauthproxy.go+1−1
oauthproxy.go+1−1
@@ -751,7 +751,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
751751
752752 session, err := p.redeemCode(req.Host, req.Form.Get("code"))
753753 if err != nil {
754− logger.Printf("Error redeeming code during OAuth2 callback: %s ", errorString)
754+ logger.Printf("Error redeeming code during OAuth2 callback: %s ", err.Error())
755755 p.ErrorPage(rw, 500, "Internal Error", "Internal Error")
756756 return
757757 }