# Discourse SAML logout issue

**URL:** <https://meta.discourse.org/t/discourse-saml-logout-issue/171286>\
**Category:** SSO\
**Created:** [November 25, 2020, 1:28pm UTC](https://meta.discourse.org/t/discourse-saml-logout-issue/171286 "2020-11-25T13:28:49Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

In the SSO category, [shanedlr](/t/-/171286/1) reports an issue with the `discourse-saml` plugin when used with a simpleSAMLphp Identity Provider (IdP). While the Single Sign-On (SSO) login process functions correctly, the logout mechanism fails to terminate the session on the IdP. Consequently, when a user attempts to log in again, they are automatically authenticated without being redirected to the IdP's login page. The user confirms they have followed the setup instructions in the plugin's repository and is seeking guidance on whether additional configuration is required to enable proper Single Logout (SLO) functionality.

<div class="post-metadata">

**Author:** ![shanedlr](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@shanedlr](https://meta.discourse.org/u/shanedlr)\
**Post date:** [November 25, 2020, 1:28pm UTC](https://meta.discourse.org/t/discourse-saml-logout-issue/171286/1 "2020-11-25T13:28:49Z")

</div>

Hi,

I’ve been using discourse-saml plugin to use with discourse Forum site as SP and connect with an IdP that uses simpleSAMLphp. The login works fine, but upon clicking logout, the user session from the IdP is still existing, so when the user logs in again, they are automatically logged in instead of redirecting to the IdP login page. I’ve also just followed the steps in the discourse-saml git, am I missing a setup about the logout?

Any help would be appreciated. Thanks!
