Search code examples
asp.netasp.net-coreadfsws-federation

Ws-Federation authentication with ASP.NET Core


I am migrating an ASP.NET application to be on ASP.NET Core, but have met a problem of Ws-Federation authentication: there is no [Ws-Federation] (https://www.nuget.org/packages?q=Microsoft.Owin.Security.WsFederation) OWIN middleware available in ASP.NET Core platform.

But I noticed all authentication middleware for ASP.NET Core are now under Microsoft.AspNetCore.Authentication namespace, so I searched all packages from nuget.org and found most of the authentication packages are there, but unfortunately only the Microsoft.AspNetCore.Authentication.WsFederation is missing.

So, I would like to know, if the package is missing because it is not implemented yet or any other reason? Alternatively, is there existing ASP.NET Core based authentication middleware for Ws-Federation?


Solution

  • It's not implemented yet, mainly because .NET Core doesn't have the encrypted XML and XML dsig classes needed.

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