web.config + asp.net MVC + location > system.web > authorization + Integrated Security
- by vdh_ant
Hi guys
I have an ASP.Net MVC app using Integrated Security that I need to be able grant open access to a specific route.
The route in question is '~/Agreements/Upload' and the config I have setup looks like this:
<configuration>
...
<location path="~/Agreements/Upload">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
...
</configuration>
I have tried a few things and nothing has worked thus far.
In IIS under Directory Security Authentication Methods I only have "Integrated Windows Authentication" selected. Now this could be part of my problem (as even though IIS allows the above IIS doesn't). But if that's the case how do I configure it so that Integrated Security works but allows people who aren't authenticated to access the given route.
Cheers
Anthony