【发布时间】:2017-11-02 14:49:12
【问题描述】:
我正在尝试在 Visual Studio 2017 中的 Web API ASP.Net Core 1.1 项目上实现 Jwt Token Auth。我按照 https://samueleresca.net/2016/12/developing-token-authentication-using-asp-net-core/ 的教程进行操作,但是当我添加 Microsoft.AspNetCore.Authentication.JwtBearer nuget 时没有可用的 app.UseJwtBearerAuthentication 方法。
我错过了什么吗?
谢谢。
【问题讨论】:
-
你安装了哪个版本的nuget包?教程使用 1.0,但现在稳定在 1.2
-
使用 Visual Studio 2017,我得到每个包的 1.1.2。我的目标是 .Net Core 1.1
标签: c# asp.net asp.net-web-api jwt jjwt