Send request body to authorization server for forward auth
This commit is contained in:
parent
b1934231ca
commit
26738cbf93
20 changed files with 411 additions and 38 deletions
|
@ -35,11 +35,6 @@ import (
|
|||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
const (
|
||||
defaultMirrorBody = true
|
||||
defaultMaxBodySize int64 = -1
|
||||
)
|
||||
|
||||
// ProxyBuilder builds reverse proxy handlers.
|
||||
type ProxyBuilder interface {
|
||||
Build(cfgName string, targetURL *url.URL, shouldObserve, passHostHeader, preservePath bool, flushInterval time.Duration) (http.Handler, error)
|
||||
|
@ -221,12 +216,12 @@ func (m *Manager) getMirrorServiceHandler(ctx context.Context, config *dynamic.M
|
|||
return nil, err
|
||||
}
|
||||
|
||||
mirrorBody := defaultMirrorBody
|
||||
mirrorBody := dynamic.MirroringDefaultMirrorBody
|
||||
if config.MirrorBody != nil {
|
||||
mirrorBody = *config.MirrorBody
|
||||
}
|
||||
|
||||
maxBodySize := defaultMaxBodySize
|
||||
maxBodySize := dynamic.MirroringDefaultMaxBodySize
|
||||
if config.MaxBodySize != nil {
|
||||
maxBodySize = *config.MaxBodySize
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue