Request Authentication in ASP.Net Web Api 2: OWIN or IAuthenticationFilter

I am on the lookout to choose an appropriate Authentication strategy for my ASP.Net Web Api 2. My clients login to Auth0 and get a Bearer token and pass it to my Api. Base on my researches there are several Authentication mechanism that I can choose to validate the request token in the Api however two of them seem better options

  • Using OWIN middleware(ie JWT)
  • Using a custom filter attribute derived from IAuthenticationFilter
  • I am wondering is there any benefit with OWIN over IAuthenticationFilter? what are the pros and cons?

    链接地址: http://www.djcxy.com/p/22400.html

    上一篇: 针对Asp.net Web API的JWT承载认证问题2

    下一篇: ASP.Net Web Api 2中的请求身份验证:OWIN或IAuthenticationFilter