# SAML addon logout callback not working

**URL:** <https://community.auth0.com/t/saml-addon-logout-callback-not-working/112894>\
**Category:** Get Help\
**Tags:** sessions\
**Created:** [August 4, 2023, 10:12am UTC](https://community.auth0.com/t/saml-addon-logout-callback-not-working/112894 "2023-08-04T10:12:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloHealth](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@helloHealth](https://community.auth0.com/u/helloHealth)\
**Post date:** [August 4, 2023, 10:12am UTC](https://community.auth0.com/t/saml-addon-logout-callback-not-working/112894/1 "2023-08-04T10:12:42Z")

</div>

Hello,

we have a setup where we’re using Auth0 as an Identity Provider and Learnworlds as a Service Provider connected via SAML2 Web App, and having issues with Single Logout functionality. We have two apps, one is nextjs based where we implemented Auth0 Provider and the other one is standard Learnworlds with SAML enabled.

What works:

- Login both ways (when we login in IdP app, SP is logged in as well, and vice versa)
- Logout from SP also logs user out in IdP app

What doesn’t work:

- Logout from IdP doesn’t log user out from SP (in this case Learnworlds app)

We got the Single Logout URL from Learnworlds app and set it to SAML addon logout callback (also allowed in application settings)

 ![saml](https://global.discourse-cdn.com/auth0/original/3X/0/3/030561c5b52a178eedbe46c6c46f6b33b57d5c43.png)

I installed SAML-tracer browser extension it picks up every SAML request (login both ways, logout from SP) except that one, seems it just doesn’t trigger. Any ideas what could be wrong?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [September 7, 2023, 1:56pm UTC](https://community.auth0.com/t/saml-addon-logout-callback-not-working/112894/5 "2023-09-07T13:56:17Z")

</div>

Hi @helloHealth

Welcome to the Auth0 Community!

While searching for a potential solution, I found that the learnworld guide to setup SLO can have an error.

To logout users from Auth0 IDP you need to follow this URL `https://YOUR_DOMAIN/samlp/CLIENT_ID/logout`

not the regular one as mentioned in the guide

> In the URL it will be [https://YOUR\_AUTH0\_DOMAIN/v2/logout? client\_id=YOUR\_CLIENT\_ID& returnTo=LOGOUT\_URL](https://your_domain/v2/logout?%20client_id=YOUR_CLIENT_ID&%20returnTo=LOGOUT_URL) where **Client\_id** is the Client ID of your Auth0 application.

If you want to read more about SLO Auth0, you can find an excellent guide [here](https://community.auth0.com/t/federated-logout-and-single-logout-slo/81084).

If you found this post helpful or interesting, please give it a like 👍 . Your interaction makes a difference. **Have a wonderful day!** 🌞

Dawid

* * *

[📹 _Prefer how-to videos instead of written docs? We’ve got you covered! Check out our OktaDev YouTube channel for those helpful resources!_](https://www.youtube.com/@OktaDev/videos)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 21, 2023, 1:56pm UTC](https://community.auth0.com/t/saml-addon-logout-callback-not-working/112894/6 "2023-09-21T13:56:58Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
