Skip to main content

Single Logout error with Salesforce configured as a SAML Service Provider

 

Hello,

 

I'm setting up a single logout functionality between SAML Identity Provider and multiple Service Providers.

 

All service providers are accepting SLO requests and log out successfully, except application running on Salesforce.

 

On Identity Provider side I'm using https://myapp2.my.salesforce.com/services/auth/sp/saml2/logout SLO endpoint as per the documentation: https://help.salesforce.com/articleView?id=security_auth_slo_saml_sp_configuring.htm

 

This is the session index from the IdP SAML response on login to the app running on Salesforce:

 

SessionIndex="_ikqVdGeBLDs7fSz9EylWyeePncKJr1eu"

 

This is the SLO request that's sent to Identity provider by logout initiating application (app is not running on Salesforce):

 

<saml2p:LogoutRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" Destination="https://myidp.example.com/logout" ID="_fbe064a1-07f7-4644-8db1-acf9bdc41c48" IssueInstant="2019-05-20T21:50:28.504Z" Version="2.0"><saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://myapp1.example.com</saml2:Issuer><saml2:NameID xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">test@example.com</saml2:NameID><saml2p:SessionIndex>_pWeWV215PGBTqXAUuA4D1Mt_f7Q7zTtp</saml2p:SessionIndex></saml2p:LogoutRequest>

 

and this is the logout request that is sent down to Salesforce application by the Identity Provider:

 

<samlp:LogoutRequest Consent="urn:oasis:names:tc:SAML:2.0:consent:unspecified"

    Destination="https://myapp2.my.salesforce.com/services/auth/sp/saml2/logout"

    ID="_3170ecdbaf0006476782" IssueInstant="2019-05-20T21:50:28Z" Version="2.0"

    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">

    <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">urn:myidp.example.com</Issuer>

    <NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"

        xmlns="urn:oasis:names:tc:SAML:2.0:assertion">test@example.com</NameID>

    <samlp:SessionIndex>_ikqVdGeBLDs7fSz9EylWyeePncKJr1eu</samlp:SessionIndex>

</samlp:LogoutRequest>

 

The error message after SLO request hits SalesForce endpoint is quite generic and there are no logs to troubleshoot it:

 

Logout Error: We are unable to log you out. Please contact your administrator for more information

 

Is there any way to troubleshoot this issue from SalesForce side? At least somehow capture internal error message in SalesForce?

9 Kommentare
  1. 26. Aug. 2019, 21:29
0/9000