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

Shu*_*ing 5 asp.net adfs ws-federation asp.net-core

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

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

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

blo*_*art 5

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

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