We found an old version of ComponentSpace and decided to update it.
Upgraded from
ComponentSpace.SAML2, Version=4.6.0.0
=>
ComponentSpace.Saml2, Version=7.3.0.0
So far I’ve only changed EnableSha1Support = true, as SHA-1 was presumably the default back then (which is a different issue).
But I get this error when a user attempts to do logout:
ComponentSpace.SAML2.Exceptions.SAMLProtocolException: Logout from the partner identity provider http://redacted-adfs-url/services/trust is disabled.
at ComponentSpace.SAML2.InternalSAMLServiceProvider.ReceiveSLO(HttpRequestBase httpRequest, Boolean& isRequest, String& logoutReason, String& partnerIdP, String& relayState)
at ComponentSpace.SAML2.SAMLServiceProvider.ReceiveSLO(HttpRequestBase httpRequest, Boolean& isRequest, String& logoutReason, String& partnerIdP, String& relayState)
...
The PartnerIdentityProviderConfiguration is the following:
{
"SingleSignOnServiceUrl": "https://redacted-adfs-url/ls/",
"SingleSignOnServiceBinding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect",
"SignAuthnRequest": false,
"ForceAuthn": false,
"WantAssertionOrResponseSigned": true,
"WantSAMLResponseSigned": false,
"WantAssertionSigned": true,
"WantAssertionEncrypted": true,
"ProviderName": null,
"AuthnContextComparison": null,
"DisableIdPInitiatedSso": false,
"DisableAssertionReplayCheck": false,
"DisableRecipientCheck": true,
"DisableTimePeriodCheck": false,
"DisableAudienceRestrictionCheck": false,
"DisableAuthnContextCheck": false,
"SingleLogoutServiceUrl": "https://redacted-adfs-url/ls/?wa=wsignout1.0",
"SingleLogoutServiceResponseUrl": null,
"SingleLogoutServiceBinding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect",
"LogoutRequestLifeTime": "00:03:00",
"SignLogoutRequest": true,
"SignLogoutResponse": true,
"WantLogoutRequestSigned": false,
"WantLogoutResponseSigned": false,
"EncryptLogoutNameID": false,
"IssuerFormat": null,
"NameIDFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified",
"DigestMethod": "http://www.w3.org/2000/09/xmldsig#sha1",
"SignatureMethod": "http://www.w3.org/2000/09/xmldsig#rsa-sha1",
"WantDigestMethod": null,
"WantSignatureMethod": null,
"KeyEncryptionMethod": "http://www.w3.org/2001/04/xmlenc#rsa-1_5",
"KeyEncryptionDigestMethod": null,
"KeyEncryptionMaskGenerationFunction": null,
"DataEncryptionMethod": "http://www.w3.org/2001/04/xmlenc#aes128-cbc",
"ClockSkew": "01:00:00",
"AuthnContext": null,
"UseEmbeddedCertificate": false,
"EnableSha1Support": true,
"DisableDestinationCheck": true,
"DisableInboundLogout": true,
"DisableOutboundLogout": false,
"DisableInResponseToCheck": false,
"DisablePendingLogoutCheck": false,
"DisableLogoutResponseStatusCheck": false,
"DisableClearAllSessionsOnLogout": false,
"PartnerCertificates": [
{
"Use": 3,
"String": null,
"Key": "",
"FileName": "\\\\secret-path\\Certificate.crt",
"Password": "",
"PasswordKey": null,
"StoreLocation": 2,
"StoreName": "My",
"SerialNumber": "",
"Thumbprint": "",
"SubjectName": "",
"Id": 0
}
],
"Name": "http://redacted-adfs-url/services/trust",
"Description": null,
"LocalCertificates": [
],
"Id": 0
}
The same ADFS configuration is working for the old version.
Any ideas of why I’m getting this and what needs to be changed to fix this issue?