Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into oidc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing-ze committed Nov 20, 2024
2 parents f180bf5 + 6731cf6 commit 5f60468
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,7 @@ func (p *OAuthProxy) Proxy(rw http.ResponseWriter, req *http.Request) {
case err == nil:
rw.WriteHeader(http.StatusOK)
if p.passAuthorization {
proxywasm.AddHttpRequestHeader("Authorization", fmt.Sprintf("%s %s", providers.TokenTypeBearer, session.AccessToken))
util.Logger.Debug("Authorization header add access token")
proxywasm.AddHttpRequestHeader("Authorization", fmt.Sprintf("%s %s", providers.TokenTypeBearer, session.IDToken))
}
if cookies, ok := rw.Header()[SetCookieHeader]; ok && len(cookies) > 0 {
newCookieValue := strings.Join(cookies, ",")
Expand Down

0 comments on commit 5f60468

Please sign in to comment.