<configuration> <system.web> <authentication mode="Windows"/> <identity impersonate="false"/> <roleManager enabled="true" /> </system.web> <location path="Default.aspx"> <system.web> <authorization> <allow roles="domain\WebAppAccess"/> </authorization> </system.web> </location> <location path="WebForm1.aspx"> <system.web> <authorization> <deny roles="domain\WebAppAccessDefaultOnly"/> </authorization> </system.web> </location> <location path="WebForm2.aspx"> <system.web> <authorization> <deny roles="domain\WebAppAccessDefaultOnly" /> </authorization> </system.web> </location> <location path="WebForm3.aspx"> <system.web> <authorization> <deny roles="domain\WebAppAccessDefaultOnly" /> </authorization> </system.web> </location> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> <runtime> <legacyImpersonationPolicy enabled="false"/> <alwaysFlowImpersonationPolicy enabled="false"/> </runtime> </configuration>
<configuration> <system.webserver> <security> <authorization> <remove users="*" roles="" verbs="" /> <add accesstype="Allow" roles="iis7test\BobAndFriends" /> </authorization> </security> </system.webserver> <location path="bobsSecret.aspx"> <system.webserver> <security> <authorization> <remove users="" roles="iis7test\BobAndFriends" verbs="" /> <add accesstype="Allow" users="iis7test\Bob" /> </authorization> </security> </system.webserver> </location> </configuration>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)