1
0
Fork 0

Add missing headerField in Middleware CRD

This commit is contained in:
Harold Ozouf 2025-01-31 14:28:06 +01:00 committed by GitHub
parent cdd24e91b4
commit d04e2d717c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 22 additions and 1 deletions

View file

@ -161,6 +161,9 @@ type ForwardAuth struct {
TLS *ClientTLS `json:"tls,omitempty"`
// AddAuthCookiesToResponse defines the list of cookies to copy from the authentication server response to the response.
AddAuthCookiesToResponse []string `json:"addAuthCookiesToResponse,omitempty"`
// HeaderField defines a header field to store the authenticated user.
// More info: https://doc.traefik.io/traefik/v3.3/middlewares/http/forwardauth/#headerfield
HeaderField string `json:"headerField,omitempty"`
// ForwardBody defines whether to send the request body to the authentication server.
ForwardBody bool `json:"forwardBody,omitempty"`
// MaxBodySize defines the maximum body size in bytes allowed to be forwarded to the authentication server.