MCPcopy Create free account
hub / github.com/goadesign/goa / HasNoSecurity

Function HasNoSecurity

expr/security.go:150–159  ·  view source on GitHub ↗

HasNoSecurity returns true if the security requirements explicitly disable security.

(reqs []*SecurityExpr)

Source from the content-addressed store, hash-verified

148// HasNoSecurity returns true if the security requirements explicitly disable
149// security.
150func HasNoSecurity(reqs []*SecurityExpr) bool {
151 for _, req := range reqs {
152 for _, scheme := range req.Schemes {
153 if scheme.Kind == NoKind {
154 return true
155 }
156 }
157 }
158 return false
159}
160
161// EffectiveSecurityRequirements returns the security requirements that should
162// be enforced. It returns nil when reqs explicitly disable security.

Callers 7

buildPathFromExprFunction · 0.92
buildOperationFunction · 0.92
FinalizeMethod · 0.85

Calls

no outgoing calls