I have created a simple MVC 4 web site that uses Windows Identity Foundation for authentication. When accessing static content with a default file the authentication works fine, but when accessing a specific file, the user is granted access without having to authenticate. For example the path to the static content: https://test.wgint.com/help/robohelp/fmsuserguide Forwards to the AD FS server for authentication but https://test.wgint.com/help/robohelp/fmsuserguid/login_support.htm allows access without forwarding to the AD FS server.
The path 'robohelp' is a virtual directory off of the MVC site and is not directly managed by the MVC code.
The web config was set up by the 'Identity and Access' tool:
<system.web>
<authorization>
<deny users="?" />
</authorization>
<authentication mode="None" />
I cannot figure out why direct access to static files in the virtual directory are not protected but access to paths in the virtual directory are protected. Any ideas?