title: I want to disable requiring authentication for one MVC controller action
body: <p>I have created an mvc application I don't want authentication for one functionality in my application. I want that the user should able to open the page from the URL without log in.Right now if I enter the URL to open that functionality directly then it will take me to the sign on page. I want to bypass the authentication process in one functionality.
  I have tried following code in my web.config.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;location path="ControllerName"&gt;
      &lt;system.web&gt;
          &lt;authorization&gt;
              &lt;allow users="*"/&gt;
          &lt;/authorization&gt;
      &lt;/system.web&gt;
  &lt;/location&gt;
  </code></pre>
  
  <p>And I have also added [AllowAnonymous] attribute to the some action of my controller.</p>
  
  <p>The following code that i have written for authentication in my web.config.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;modules runAllManagedModulesForAllRequests="true"&gt;
      &lt;remove name="FormsAuthentication"/&gt;
  
      &lt;add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule"/&gt;
  
      &lt;remove name="AuthorisationModule"/&gt;
  
      &lt;add name="AuthorisationModule" type="ProjectName.AuthorisationModule(which is for autentication), Project Name"/&gt;
  &lt;/modules&gt;
  </code></pre>