From ed985136a1d239a65cdc008ab935b66215d171ea Mon Sep 17 00:00:00 2001 From: daijingze_mac <18373118@buaa.edu.cn> Date: Wed, 20 Nov 2024 15:03:12 +0800 Subject: [PATCH] add debug info of id token --- oauthproxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/oauthproxy.go b/oauthproxy.go index 426f36c291..5ddd46bfbf 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -439,6 +439,7 @@ func (p *OAuthProxy) Proxy(rw http.ResponseWriter, req *http.Request) { rw.WriteHeader(http.StatusOK) if p.passAuthorization { proxywasm.AddHttpRequestHeader("Authorization", fmt.Sprintf("%s %s", providers.TokenTypeBearer, session.IDToken)) + util.Logger.Debug("Authorization header add id token") } if cookies, ok := rw.Header()[SetCookieHeader]; ok && len(cookies) > 0 { newCookieValue := strings.Join(cookies, ",")