Skip to content

Commit

Permalink
add debug info of id token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing-ze committed Nov 20, 2024
1 parent 5f60468 commit ed98513
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ",")
Expand Down

0 comments on commit ed98513

Please sign in to comment.