MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / authAppliesTo

Function authAppliesTo

internal/pluginstore/auth.go:237–247  ·  view source on GitHub ↗
(item AuthConfig, kind string)

Source from the content-addressed store, hash-verified

235}
236
237func authAppliesTo(item AuthConfig, kind string) bool {
238 if len(item.ApplyTo) == 0 {
239 return true
240 }
241 for _, value := range item.ApplyTo {
242 if strings.EqualFold(strings.TrimSpace(value), kind) {
243 return true
244 }
245 }
246 return false
247}
248
249func envValueRequired(envName string, field string) (string, error) {
250 envName = strings.TrimSpace(envName)

Callers 1

matchingAuthConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected