CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Predicate hasAuthViaCode

Holds if m is a method that should have an auth check, and does indeed have one.

Import path

import semmle.code.csharp.security.auth.MissingFunctionLevelAccessControlQuery
predicate hasAuthViaCode(ActionMethod m)