【发布时间】:2015-09-22 19:48:00
【问题描述】:
我看到的例子表明IApplicationBuilder 有一个扩展方法.UseJwtBearerAuthentication(Action<?> options)。
这个SO question和AspNet.Security.OpenIdConnect.Server sample server startup file好像说有这样的扩展。在 OpenIdConnect 上,我查看了扩展文件夹,但没有看到名为 UseJwtBearerAuthentication 的扩展。甚至this blog 说它应该包含在 ASP.net 5 中。我还尝试将 Microsoft.AspNet.Security.OAuthBearer, 1.0.0-beta3 添加到我的 project.json 并在 Startup.cs 中引用它。没有帮助。
我唯一不同的是我使用的是-beta7,但我认为这无关紧要。
【问题讨论】:
标签: asp.net-web-api asp.net-core asp.net-core-mvc