title: Web Api 2 HttpContext or HttpActionContext
body: <p>What is the difference between the following two ways of accessing the principle via an <code>AuthorizeAttribute</code> implementation?</p>
  
  <p><strong>Using <code>HttpContext</code>:</strong></p>
  
  <pre><code>protected override bool IsAuthorized(HttpActionContext actionContext)
  {
      return HttpContext.Current.User.IsInRole("DemoRole");
  }
  </code></pre>
  
  <p><strong>Using <code>HttpActionContext</code>:</strong></p>
  
  <pre><code>protected override bool IsAuthorized(HttpActionContext actionContext)
  {
      return actionContext.RequestContext.Principal.IsInRole("DemoRole");
  }
  </code></pre>