ASP.NET Web API 的 JWT 身份驗證 - JWT authentication for ASP.NET Web API

問題:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章