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.
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
master | dev | vnext |
---|---|---|
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;