asp.net-web-api2 - 找不到 ApplicationOAuthProvider 和 HostAuthenticationFilter

标签 asp.net-web-api2

至少有几篇关于 WebApi 2 授权的文章(即 http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api )描述了它们的使用,但我找不到需要包含它们的引用文献。我确实引用了 Microsoft.Owin/Owin.Security/Owin.Security.OAuth。

帮忙?

最佳答案

我通过安装 Microsoft.AspNet.WebApi.Owin 包解决了 HostAuthenticationFilter 问题。

另请检查 How do I get System.Web.Http.Owin?

关于asp.net-web-api2 - 找不到 ApplicationOAuthProvider 和 HostAuthenticationFilter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29662627/

相关文章:

c# - ASP.NET Web API 2 - 序列化后字符串中的双反斜杠

asp.net-web-api - 网页 API : how to read action attribute and parameters from HttpContext

c# - 具有多个可选参数的搜索功能(客户端和API)

c# - "Cannot be determined because there is no implicit conversion"如果返回则为三进制

c# - PostAsync to/Token 返回内部服务器错误

authentication - 带有 OWIN 的 ASP.NET Web Api - 自定义身份验证

c# - 不支持服务类型 IAssembliesResolver。参数名称 : serviceType

security - 在 SPA 网上商店中实现 Web API 身份验证的最佳实践

c# - 从 WebApi 中的 snake case JSON 自动绑定(bind) pascal case c# 模型

javascript - Web Api 属性路由无法访问带有问号和与号的数据的方法