Just had a little issue where we wanted to secure up an ASP.NET MVC app using directory security but allow a single action through with anonymous auth. Unfortunately there is nothing to click on in IIS since MVC’s routes are decided dynamically and not from the file system.
I’m sure there is a ‘proper’ way to edit the IIS metabase – but we created the folder structure that represents the action under the main folder, set up the auth on that and then deleted the folder. The meta-base details persits and now everything works fine!
[…] to VoteQuick hack to configure directory security on MVC Views with IIS (9/22/2009)Tuesday, September 22, 2009 from ronniebarkerJust had a little issue where we wanted to secure up an […]
By: ASP.NET MVC Archived Blog Posts, Page 1 on September 28, 2009
at 5:20 am