问题:
I'm trying to support JWT bearer token (JSON Web Token) in my web API application and I'm getting lost.我正在尝试在我的 Web API 应用程序中支持 JWT 不记名令牌(JSON Web 令牌),但我迷路了。
I see support for .NET Core and for OWIN applications.我看到了对 .NET Core 和 OWIN 应用程序的支持。
I'm currently hosting my application in IIS.我目前在 IIS 中托管我的应用程序。
How can I achieve this authentication module in my application?如何在我的应用程序中实现此身份验证模块? Is there any way I can use the <authentication>
configuration similar to the way I use forms/Windows authentication?有什么方法可以使用类似于我使用表单/Windows 身份验证的方式的<authentication>
配置?
解决方案:
参考一: https://stackoom.com/question/2j0wM参考二: JWT authentication for ASP.NET Web API