Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net core and SAML 2.0

Our University has migrated to a SAML based authentication/authorization method using Shibboleth.

I have been researching for at least a day on how to use SAML with .net core web applications. I can't use Identity server 4 because it is for OaTH/Open ID. I found some documentation on msdn which points to a commercial implementation. I came across this SO answer from a year ago saying Kentor may support it in the future but couldn't find anything on the github page about support for .net core or a .net core sample web app. As of January it was still planned but no date.

The University has the identity provider running. What I don't understand is the following:

  1. How do I set my web application to use that identity provider?
  2. How do I check if that identity provider has already been authenticated for another application, so SSO use?

Also, any sample applications that use SAML without commercial plugins would be greatly appreciated.

like image 622
Xaxum Avatar asked Feb 08 '17 04:02

Xaxum


2 Answers

ITfoxtec has a ASP.NET MVC Core 1.0 SAML2 plugin, but it requires the .NET Full Framework, and won't run on linux. There's some missing APIs that are preventing full .NET Core support right now for SAML2 (around Crypto XML namespace). https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2

Not exactly what you're looking for I know, but it's an interim solution until probably .NET Standard 2.0, which will probably bring the missing API's to .NET Core.

like image 108
seiggy Avatar answered Nov 05 '22 09:11

seiggy


ITfoxtec Identity Saml2 support .NET Core 2.1 (without the .NET Framework) from version 3.0.0. Project: https://itfoxtec.com/IdentitySaml2

ITfoxtec Identity Saml2 MVC Core support ASP.NET MVC Core 2.1. NuGet package: https://www.nuget.org/packages/ITfoxtec.Identity.Saml2.MvcCore/

like image 33
Anders Revsgaard Avatar answered Nov 05 '22 09:11

Anders Revsgaard