title: .net mvc authorization with OnAuthorization
body: <p>In my base controller I have a OnAuthorization event handler and in my Controllers I have handlers that sometimes have <code>[Authorize]</code> and sometimes not. These controllers inherit from base controller.</p>
  
  <p>What I would expect is for OnAuthorization to be triggered when authorization is actually needed (method or controller having <code>[Authorize]</code>. </p>
  
  <p>This is not the case and the OnAuthorization is triggered for every method.</p>
  
  <p>Is there a way to prevent this from happening or to detect the method/class not having the <code>[Authorize]</code> attribute?</p>
  
  <p>Currently I want to authorize only 5 or the 25 or so handlers so it would be great to have a single method handling this without having to change all the controllers.</p>