Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 922
Shuping Avatar asked Mar 12 '23 02:03

Shuping


2 Answers

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

like image 51
blowdart Avatar answered Mar 20 '23 12:03

blowdart


I've ported the Katana middleware over to ASP.NET Core. It has a hard dependency on the full .NET Framework since that is the only place the required libraries exist right now.

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

like image 34
chrisdrobison Avatar answered Mar 20 '23 12:03

chrisdrobison