title: FormAuthentication with WebAPI using Breeze
body: <p>I am protecting WebAPI using forms Authentication, that is using Breezecontroller
  When i try to call WebAPi method i am getting back the following error.</p>
  
  <p>status:404
  statusText: "Not Found"
  message:"MetaData query failed for:'';, No Http resource was found tha matches...</p>
  
  <p>My question is why am i not getting back "UnAuthorized error(401)" ?
  metadata is decorated with  [Authorize] as well.</p>
  
  <p>Seems like FormsAuthentication's redirect is giving problem.
  It is redirecting to Login(has AllowAnonymous) WebApi method and reports it cannot find, eventhough i have. Also i am applying the Authrozie to the methods instead of controller.  the exact error is  </p>
  
  <pre><code>  {"$id":"1","$type":"System.Web.Http.HttpError,System.Web.Http","Message":"NoHTTPresourcewasfoundthatmatchestherequestURI'http://localhost:40678/api/Country/Login?ReturnUrl=/api/Country/Metadata'.","MessageDetail":"Noactionwasfoundonthecontroller'Country'thatmatchestherequest."}
  </code></pre>