title: How to get Post parameters on IsAuthorized of AuthorizeAttribute ASP.NET Web.API MVC 5
body: <p>I need to get values of my Post Parameters at the time of Authorization. Searchers on web but no solution is working. <code>ActionArguments</code> count always showing 0 and not able to find values in <code>ActionDescriptor.GetParameters()</code> </p>
  
  <p>Here is my code:</p>
  
  <p><strong>POST model -</strong></p>
  
  <pre><code>public class XyzModel
  {
     public int Prop1 { get; set; }
     public string Prop2 { get; set; }
  }
  </code></pre>
  
  <p><strong>Custom Authorize Attribute -</strong></p>
  
  <pre><code>public class CustomAuthorizeAttribute  : AuthorizeAttribute
  {
     protected override bool IsAuthorized(HttpActionContext actionContext)
     {    
       bool conditions = // here I need to check value of my model (XyzModel) properties 
      if(conditions)
      {
         return true;
      }
  
        return false;
      }        
  }
  </code></pre>
  
  <p><strong>Code in controller -</strong></p>
  
  <pre><code>[HttpPost]
  [CustomAuthorizeAttribute]       
  public IHttpActionResult MyAction(XyzModel model)
  {
      // my work here
  }
  </code></pre>
  
  <p>Any suggestion?</p>