An open API service indexing awesome lists of open source software.

https://github.com/ebyte23/samlsilly

SAMLSilly is a new simple valid implementation of the SAML 2.0 Standard
https://github.com/ebyte23/samlsilly

asp-net asp-net-core aspnetcore dotnet dotnet-core saml saml-sp-single-sign-on saml2

Last synced: 10 months ago
JSON representation

SAMLSilly is a new simple valid implementation of the SAML 2.0 Standard

Awesome Lists containing this project

README

          

# SAMLSilly

## What is SAMLSilly
SAMLSilly is a SAML2.0 implementation for .net and .net core (coming soon). This library was forked form [elerch/SAML2](https://github.com/elerch/SAML2) original to [eByte23/SAML2.DotNet35](https://github.com/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](https://github.com/eByte23/SAML.DOCS)

### Build Statuses:
master | dev | vnext
-------|-----| ------
[![Build status](https://ci.appveyor.com/api/projects/status/m8its6r2l4p0v1rh/branch/master?svg=true)](https://ci.appveyor.com/project/eByte23/samlsilly/branch/master) | [![Build status](https://ci.appveyor.com/api/projects/status/m8its6r2l4p0v1rh/branch/dev/current?svg=true)](https://ci.appveyor.com/project/eByte23/samlsilly/branch/dev/current)| [![Build status](https://ci.appveyor.com/api/projects/status/m8its6r2l4p0v1rh/branch/vnext?svg=true)](https://ci.appveyor.com/project/eByte23/samlsilly/branch/vnext)

### 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;
```