Created
April 30, 2015 11:26
-
-
Save mjul/aa511ddeee446a26ceb4 to your computer and use it in GitHub Desktop.
NDepend - find ASP.NET web pages not using an authorization service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <Name>Web pages that do not use the AuthorizationService</Name> | |
from t in JustMyCode.Types | |
where t.DeriveFrom("System.Web.UI.Page") | |
from pl in t.Methods | |
where pl.SimpleName == "Page_Load" | |
&& !pl.IsUsingType("Cyberdyne.AuthorizationService") | |
select new { t, t.BaseClass, pl.SimpleName } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this useful while reviewing a legacy system for security issues.