title: Authentication in dot net core preview-2.0
body: <p>I tried jwt token authentication in my web api project in .net-core preview-2, but it's not working properly.</p>
  
  <blockquote>
    <p>JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication(IA‌​pplicationBuilder,
    JwtBearerOptions)' is obsolete: 'See
    go.microsoft.com/fwlink/?linkid=845470';</p>
  </blockquote>
  
  <p>When i try same code to dot net core 1.2, it runs properly. What should i do?</p>
  
  <p><a href="https://i.stack.imgur.com/hVXsH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hVXsH.png" alt="enter image description here"></a></p>