title: ASP.NET Web API Using HMAC in .NET Core
body: <p>I want to secure an ASP.NET Web API project with HMAC auth.</p>
  
  <p>This REST API project will be used by third-party developers to access my application's data.</p>
  
  <p>I'm trying to adapt <a href="http://www.codeguru.com/csharp/.net/net_asp/learn-to-secure-an-asp.net-web-api-using-hmac.html" rel="nofollow">this post</a>  in .NET Core without success...</p>
  
  <p>Some of the class / interface used don't exist anymore (ex: IAuthenticationFilter, HttpAuthenticationContext, HttpAuthenticationContext, IHttpActionResult)</p>
  
  <p>How can I add a sample HmacAuthentication attribute to my API methods in order to protect them with HMACSHA256 ?</p>
  
  <p>Thanks for your answers! </p>