title: BasicAuthentication not invoking my OnActionExecuting in Auth.cs - what may I have missed?
body: <p>I have my controller decorated with: [BasicAuthentication] - however, putting in breakpoints, and stepping through the code, the [BasicAuthentication] never redirects to the Auth.cs (in the Filter folder):</p>
  
  <p>Filter\Auth.cs</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Security.Principal;
  using System.Text;
  using System.Threading;
  using System.Web;
  using System.Web.Security;
  
  namespace ebapi.Filter
  {
      public class BasicAuthenticationAttribute : System.Web.Http.Filters.ActionFilterAttribute
      {
          public override void OnActionExecuting(System.Web.Http.Controllers.HttpActionContext actionContext)
          {
  </code></pre>
  
  <p>So the override OnActionExecuting never executes - but I cannot see what I've missed.  My controller, decorated with [BasicAuthentication] is shown below, but doesn't invoke my Auth.cs shown above:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Data;
  using System.Data.Entity.Infrastructure;
  using System.Linq;
  using System.Net;
  using System.Net.Http;
  using System.Web;
  using System.Web.Http;
  using ebapi.Filter;
  using ebapi.Models;
  
  namespace ebapi.Controllers
  {
      public class GetBookingsController : ApiController
       {
          private GetBookingsContext db = new GetBookingsContext();
          private ApiMembersContext dba = new ApiMembersContext();
  
          // GET api/GetBookings/5
          [BasicAuthentication]
          public IEnumerable&lt;GetBooking&gt; GetBooking(long id)
          {
  </code></pre>
  
  <p>Thanks for any help,</p>
  
  <p>Mark</p>