Sustainsys / Saml2

Saml2 Authentication services for ASP.NET
Other
960 stars 602 forks source link

Stubidp fails when creating Saml2Response #644

Closed AndersAbel closed 7 years ago

AndersAbel commented 7 years ago

Stacktrace: [NullReferenceException: Object reference not set to an instance of an object.] Kentor.AuthServices.XmlHelpers.GetCorrespondingDigestAlgorithm(String signingAlgorithm) +26 Kentor.AuthServices.XmlHelpers.Sign(XmlElement xmlElement, X509Certificate2 cert, Boolean includeKeyInfo, String signingAlgorithm) +235 Kentor.AuthServices.XmlHelpers.Sign(XmlDocument xmlDocument, X509Certificate2 cert, Boolean includeKeyInfo, String signingAlgorithm) +66 Kentor.AuthServices.WebSso.Saml2PostBinding.Bind(ISaml2Message message) +162 Kentor.AuthServices.StubIdp.Controllers.HomeController.Index(Nullable`1 idpId, HomePageModel model) +97

AndersAbel commented 7 years ago

Caused by new code for signing algorithm. The stubidp (which isn't covered by unit tests, as it is considered part of the test harness itself) failed to set signing algorithm which is required by the new signing code for SHA256 support.