title: Getting model data in the AuthorizeAttribute in MVC 3
body: <p>I am decorating my controller actions with an AuthorizeAttribute.</p>
  
  <pre><code>[ServiceAuthorize(Roles="Editor,Publisher,Administrator")]
  public JsonResult Create(NewsArticle newsArticle)
  </code></pre>
  
  <p>There is a field in my NewsArticle model that I would like to use in the OnAuthorize method in my AuthorizeAttribute.</p>
  
  <p>Is there any way to get at the model from within the OnAuthorize method of the AuthorizeAttribute?</p>
  
  <p>I assumed it would be available within the AuthorizationContext somewhere but I can't find it. I know I can get to it in the ActionExecutingContext of a filter attribute but that means I would need another filter on my action and I would like to be able to perform all the authorization in a single step.</p>
  
  <p>Thanks.</p>