title: Token Based Authentication in ASP.NET Core (refreshed)
body: <p>I'm working with ASP.NET Core application. I'm trying to implement Token Based Authentication but can not figure out how to use new <a href="https://github.com/aspnet/Security">Security System</a>.</p>
  
  <p><strong>My scenario:</strong>
  A client requests a token. My server should authorize the user and return access_token which will be used by the client in following requests.</p>
  
  <p>Here are two great articles about implementing exactly what I need:</p>
  
  <ul>
  <li><a href="http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/">Token Based Authentication using ASP.NET Web API 2, Owin, and Identity</a></li>
  <li><a href="http://odetocode.com/blogs/scott/archive/2015/01/15/using-json-web-tokens-with-katana-and-webapi.aspx">Using JSON Web tokens</a></li>
  </ul>
  
  <p>The problem is - it is not obvious for me how to do the same thing in ASP.NET Core.</p>
  
  <p><strong>My question is:</strong> how to configure ASP.NET Core Web Api application to work with token based authentication? What direction should I pursue? Have you written any articles about the newest version, or know where I could find ones?</p>
  
  <p>Thank you!</p>