Reputation: 777
I'm trying to implement Jwt Token Auth on a Web API ASP.Net Core 1.1 project in Visual Studio 2017. I followed the tutorial from https://samueleresca.net/2016/12/developing-token-authentication-using-asp-net-core/ but when I add the Microsoft.AspNetCore.Authentication.JwtBearer nuget there is no app.UseJwtBearerAuthentication methods available.
Did I missed something?
Thanks.
Upvotes: 1
Views: 526
Reputation: 2018
I have a demo project base on ASP.NET Core 1.1, SQL Server and JWT, you can try it: https://github.com/wilsonwu/netcoreauth
Upvotes: 0
Reputation: 777
I created a new empty project using dotnet cli:
dotnet new webapi --framework netcoreapi1.1
and it's now working fine. there must be a problem in VS2017 WebAPI template or something...
Upvotes: 1