CodeQL library for C#
codeql/csharp-all 5.1.4-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)