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

Predicate hasAuthViaAttribute

Holds if the given action has an attribute that indications authorization.

Import path

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