title: Custom authorization attribute not working in WebAPI
body: <pre><code> public class CustomAuthorizeAttribute : AuthorizationFilterAttribute
   {  
      protected override bool AuthorizeCore(HttpContextBase httpContext)
      {
         return true;// if my current user is authorised
      }
   }
  </code></pre>
  
  <p>Above is my CustomAuthorizeAttribute Class
  and</p>
  
  <pre><code>[CustomAuthorize] // both [CustomAuthorize] and [CustomAuthorizeAttribute ] I tried 
  public class ProfileController : ApiController
  {
     //My Code..
  }
  </code></pre>
  
  <p>When I'm calling </p>
  
  <pre><code>http://localhost:1142/api/Profile 
  </code></pre>
  
  <p>It is not firing <code>CustomAuthorizeAttribute</code></p>
  
  <p>More over My FilterConfig class is look like below</p>
  
  <pre><code>public class FilterConfig
  {
      public static void RegisterGlobalFilters(GlobalFilterCollection filters)
      {            
          filters.Add(new CustomAuthorizeAttribute());
      }
  }
  </code></pre>
  
  <p>Please help if I miss something.</p>