使用ASP.NET Core进行Ws-Federation身份验证

时间:2016-09-21 11:01:19

标签: asp.net asp.net-core adfs ws-federation

我正在将ASP.NET应用程序迁移到ASP.NET Core上,但遇到了Ws-Federation身份验证的问题:ASP中没有[Ws-Federation](https://www.nuget.org/packages?q=Microsoft.Owin.Security.WsFederation)OWIN中间件.NET核心平台。

但是我注意到ASP.NET Core的所有身份验证中间件现在都在Microsoft.AspNetCore.Authentication命名空间下,所以我从nuget.org搜索了所有包,发现大多数身份验证包都在那里,但不幸的是只有< em> Microsoft.AspNetCore.Authentication.WsFederation 缺失。

所以,我想知道,如果包丢失,因为它尚未实现或任何其他原因?或者,Ws-Federation是否存在基于ASP.NET Core的身份验证中间件?

3 个答案:

答案 0 :(得分:4)

尚未实现,主要是因为.NET Core没有所需的加密XML和XML dsig类。

请参阅https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/500

答案 1 :(得分:3)

我已将Katana中间件移植到ASP.NET Core。它完全依赖于完整的.NET Framework,因为这是目前所需库的唯一存在。

https://github.com/chrisdrobison/aspnetcore-wsfed

答案 2 :(得分:0)

似乎.NET Core 2.1 WS Federation软件包现已可用。 Microsoft.AspNetCore.Authentication.WsFederation。

在以下链接中找到更多信息: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/ws-federation?view=aspnetcore-2.1