diff --git a/cmd/jwtpxy.go b/cmd/jwtpxy.go index c2b9426..5a22e51 100644 --- a/cmd/jwtpxy.go +++ b/cmd/jwtpxy.go @@ -102,6 +102,7 @@ func (p *Proxy) handle(w http.ResponseWriter, r *http.Request) { if claims, ok := token.Claims.(jwt.MapClaims); ok && token.Valid { // @TODO map claims to headers from config + // @TODO config headers to preserve r.Header = http.Header{} r.Header.Add("From", claims["preferred_username"].(string)) } else {