Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Forms Authentication and a "No Authentication" subfolder

Is it possible to disable all authentication in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?

like image 308
BuddyJoe Avatar asked Mar 11 '10 14:03

BuddyJoe


2 Answers

Yes, place a web.config file on the subfolder with this content:

<configuration>
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
</configuration>
like image 119
Sergio Avatar answered Oct 04 '22 20:10

Sergio


yes you can, you can use location tag in the web.config to configure folder level security.

like image 26
Prashant Lakhlani Avatar answered Oct 04 '22 20:10

Prashant Lakhlani