# SAML is creating error for local user log out

**URL:** <https://meta.discourse.org/t/saml-is-creating-error-for-local-user-log-out/255721>\
**Category:** SSO\
**Created:** [February 20, 2023, 8:57pm UTC](https://meta.discourse.org/t/saml-is-creating-error-for-local-user-log-out/255721 "2023-02-20T20:57:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [May 25, 2023, 3:55pm UTC](https://meta.discourse.org/t/saml-is-creating-error-for-local-user-log-out/255721/8 "2023-05-25T15:55:53Z")

</div>

We came across something similar on a forum where SAML was in use previously and was now disabled. However, the `saml_slo_target_url` was still configured and Discourse kept using it.

So the fix should be that that is only being used when the SAML plugin is enabled AND the user has originally logged in with SAML.

---

_[View the full topic](https://meta.discourse.org/t/saml-is-creating-error-for-local-user-log-out/255721)._
