# Getting SAML Response instead of LogoutResponse for the LogoutResquest sent to Auth0 IdP

**URL:** <https://community.auth0.com/t/getting-saml-response-instead-of-logoutresponse-for-the-logoutresquest-sent-to-auth0-idp/88047>\
**Category:** Get Help\
**Tags:** saml\
**Created:** [August 2, 2022, 5:34pm UTC](https://community.auth0.com/t/getting-saml-response-instead-of-logoutresponse-for-the-logoutresquest-sent-to-auth0-idp/88047 "2022-08-02T17:34:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahilchhabra1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sahilchhabra1/32/33507_2.png) [@sahilchhabra1](https://community.auth0.com/u/sahilchhabra1)\
**Post date:** [August 2, 2022, 5:34pm UTC](https://community.auth0.com/t/getting-saml-response-instead-of-logoutresponse-for-the-logoutresquest-sent-to-auth0-idp/88047/1 "2022-08-02T17:34:12Z")

</div>

I am using Auth0 as Identity Provider and trying to implement SAML based Service Provider initiated Single Logout (SLO). I send the following LogoutRequest from my service to the Auth0 **Identity Provider Login URL** which looks like [https://XYZ.auth0.com/samlp/CLIENT\_ID](https://XYZ.auth0.com/samlp/CLIENT_ID) :

```auto
<?xml version="1.0" encoding="ISO-8859-15"?>
<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="request-id" Version="2.0" IssueInstant="2022-08-02T16:44:22Z" Destination="https://XYZ.auth0.com/samlp/CLIENT_ID"><saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">https://www.service.com/issuer</saml:Issuer><saml:NameID xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">user@mail.com</saml:NameID></samlp:LogoutRequest>

```

I expect in response a SAML `LogoutResponse` message, but I get a SAML `Response` message instead which seems to be the Authentication Response. Also, the user is not logged out of the Auth0 IdP.

Can someone please help me understand what is that I am doing wrong?

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [August 3, 2022, 3:54pm UTC](https://community.auth0.com/t/getting-saml-response-instead-of-logoutresponse-for-the-logoutresquest-sent-to-auth0-idp/88047/3 "2022-08-03T15:54:03Z")

</div>

Hi @sahilchhabra1 !

For a SAML logout request, it must be sent to `https://xyz.auth0.com/samlp/CLIENT_ID/logout`, which is the Single Logout Service endpoint, and in order for SLO to work you will also need to configure the SAML Web App Addon’s logout options if not done already:

- [Log Users Out of SAML Identity Providers](https://auth0.com/docs/authenticate/login/logout/log-users-out-of-saml-idps#configure-slo-when-auth0-is-the-saml-idp)

- [Customize SAML Assertions](https://auth0.com/docs/authenticate/protocols/saml/saml-configuration/customize-saml-assertions#saml-assertion-attributes)

If in doubt, you can check the SAML metadata for a given client via this URL pattern: `https://xyz.auth0.com/samlp/metadata/CLIENT_ID`

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 9:27am UTC](https://community.auth0.com/t/getting-saml-response-instead-of-logoutresponse-for-the-logoutresquest-sent-to-auth0-idp/88047/4 "2022-12-22T09:27:37Z")

</div>


