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

Ws-Federation authentication with ASP.NET Core

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

但我注意到 ASP.NET Core 的所有身份验证中间件现在都在 Microsoft.AspNetCore.Authentication namespace, so I searched all packages from nuget.org 下,并且发现大多数身份验证包都在那里,但不幸的是只有 Microsoft.AspNetCore.Authentication.WsFederation 丢失。

所以,我想知道,是因为还没有实现还是其他什么原因导致包丢失?或者,是否存在用于 Ws-Federation 的 ASP.NET 基于核心的身份验证中间件?

还没有实现,主要是.NET Core没有加密的XML和XML dsig 类。

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

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

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

看来 .NET Core 2.1 WS Federation 包现已可用。 Microsoft.AspNetCore.Authentication.WsFederation。

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