title: Unable to get custom authorize attribute to work in Web API
body: <p>I created my own Authorized Attribute as such:</p>
  
  <pre><code>public class MyCustomAttribute : AuthorizeAttribute
  {
  
      public override void OnAuthorization(AuthorizationContext filterContext)
      {
          if (Authorize(filterContext))
          {
              return;
          }
  
          HandleUnauthorizedRequest(filterContext);
      }
  
      protected override void HandleUnauthorizedRequest(AuthorizationContext filterContext)
      {
          base.HandleUnauthorizedRequest(filterContext);
      }
  
      private bool Authorize(AuthorizationContext actionContext)
      {
          return true;
      }
  
  }
  </code></pre>
  
  <p>I then decorated my controller </p>
  
  <pre><code>[RoutePrefix("api/service")]
  [MyCustom]
  public class ServiceController : ApiController
  {
  }
  </code></pre>
  
  <p>I set break points in my MyCustomAttribute class however it doesn't appear to be getting called.</p>
  
  <p>How do I get my custom attribute to work?</p>
  
  <p>I also tried registering by filter in the FilterConfig.  That didn't work, plus from what I read that would apply to all methods in my solution.</p>