title: Use Anonymous authentication in MVC4 on single controller when the whole application uses Windows Authenticaion
body: <p>I have an MVC4 Web application which uses Windows Authentication, that is in web.config  I have<br>
      <code>&lt;authentication mode="Windows" /&gt;</code>
   And that works fine and everything is ok.</p>
  
  <p>However now I need a controller (an Web API controller in fact) that should be accessed anonymously from a third party component. The problem is that every time I want to invoke this method it requests user credentials.</p>
  
  <p>I tried putting <code>AllowAnonymous</code> attribute to controller and methods but it was not successful.</p>
  
  <p><code>[AllowAnonymous]
  public bool Get(string Called, string Calling, string CallID, int direction)</code></p>
  
  <p>I checked on both IIS Express and IIS 8 with Anonymous authentication and Windows authentication enabled.</p>
  
  <p>It seems that windows authentication precedes any other authentication and cannot be overridden.</p>
  
  <p>Is there a way to accomplish this?</p>