title: ASP.NET 5 - passing parameter to AuthorizationHandler<T>
body: <p>I am attempting to create a custom <code>AuthorizationHandler&lt;T&gt;</code> in <code>ASP.NET 5</code>, but need the handler to have access to a parameter (or the url to extract the parameter)</p>
  
  <p>I'm not finding any way to do this, though;</p>
  
  <pre><code>public class Owner : AuthorizationHandler&lt;Owner&gt;, IAuthorizationRequirement {
      protected override void Handle(AuthorizationContext context, Owner requirement) {
          // no access to an HttpContext or any sort of parameters
      }
  }
  </code></pre>
  
  <p>The parameter will be part of the URL on the <code>IActionResult</code> method in the controller where the attribute is attached.</p>
  
  <p>Is there any way to do this?</p>