Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.85 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.85 KB

SAMLSilly

What is SAMLSilly

SAMLSilly is a SAML2.0 implementation for .net and .net core (coming soon). This library was forked form elerch/SAML2 original to eByte23/SAML2.DotNet35 to make it run on .net 35 and to make some large changes to the way it handles ADFS (Active Directory Federation Services). The code has diverged past the point of a merge back thus this repository.

Documentation

Current there is no documentation for SAMLSilly. It will becoming in the future but for now is not availble. For general SAML documentation and implmentation steps/details see SAML.DOCS

Build Statuses:

master dev vnext
Build status Build status Build status

NOTE: When using >= SHA256 SignatureType

When using SHA256 and above you must ensure you load your certificate using X509KeyStorageFlags.Exportable | X509KeyStorageFlags.MachineKeySet flags. If you do not do this you well get an exception like...

System.Security.Cryptography.CryptographicException : Key not valid for use in specified state.

For example

var certificate = new X509Certificate2(@"C:\My\Certificate\Path\cert.pfx", "mysuperduperpassword", X509KeyStorageFlags.Exportable | X509KeyStorageFlags.MachineKeySet);
config.ServiceProvider.SigningCertificate = certificate;