Add basic auth block support for custom_logs
@@ -91,6 +91,7 @@ func bodiesWithACBodies(defs *config.Definitions, body hcl.Body, ac, dac []strin
bodies := []hcl.Body{body}
if defs != nil {
+ // TODO: read all ACs with remain interface
for _, jwt := range defs.JWT {
for _, name := range config.NewAccessControl(ac, dac).List() {
if jwt.Name == name {
@@ -98,6 +99,14 @@ func bodiesWithACBodies(defs *config.Definitions, body hcl.Body, ac, dac []strin
}
}
}
+
+ for _, ba := range defs.BasicAuth {
+ for _, name := range config.NewAccessControl(ac, dac).List() {
+ if ba.Name == name {
+ bodies = append(bodies, ba.Remain)
+ }
+ }
+ }
}
return bodies
