I implement a SAML service provider that is integrated with the Danish Unilogin IDP. I follow the example: https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/tree/master/test/TestWebAppCore When the AssertionConsumerService is executed (in the Unilogin test environment) I get the following exception:
ITfoxtec.Identity.Saml2.Cryptography.InvalidSignatureException: at ITfoxtec.Identity.Saml2.Saml2Request.ValidateXmlSignature (ITfoxtec.Identity.Saml2, Version=4.8.0.0, Culture=neutral, PublicKeyToken=2dd6b1fbf7645f92) at ITfoxtec.Identity.Saml2.Saml2Request.Read (ITfoxtec.Identity.Saml2, Version=4.8.0.0, Culture=neutral, PublicKeyToken=2dd6b1fbf7645f92) at ITfoxtec.Identity.Saml2.Saml2Response.Read (ITfoxtec.Identity.Saml2, Version=4.8.0.0, Culture=neutral, PublicKeyToken=2dd6b1fbf7645f92) at ITfoxtec.Identity.Saml2.Saml2AuthnResponse.Read (ITfoxtec.Identity.Saml2, Version=4.8.0.0, Culture=neutral, PublicKeyToken=2dd6b1fbf7645f92) at ITfoxtec.Identity.Saml2.Saml2PostBinding.Read (ITfoxtec.Identity.Saml2, Version=4.8.0.0, Culture=neutral, PublicKeyToken=2dd6b1fbf7645f92) at ITfoxtec.Identity.Saml2.Saml2PostBinding.UnbindInternal (ITfoxtec.Identity.Saml2, Version=4.8.0.0, Culture=neutral, PublicKeyToken=2dd6b1fbf7645f92) at ITfoxtec.Identity.Saml2.Saml2Binding`1.Unbind (ITfoxtec.Identity.Saml2, Version=4.8.0.0, Culture=neutral, PublicKeyToken=2dd6b1fbf7645f92) at Nebb.IdentityServer.Web.Controllers.AuthController+d__5.MoveNext (Nebb.IdentityServer.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: /src/source/Nebb.IdentityServer.Web/Controllers/AuthController.cs:72)
I use the following parameters:
CertificateValidationMode = none
RevocationMode = NoCheck
IdPMetadataFile = https://viden.stil.dk/download/attachments/65503525/et-broker-IdP-metadata.xml?version=7&modificationDate=1578661325000&api=v2