# Issue with Drupal Discourse SSO

**URL:** <https://meta.discourse.org/t/issue-with-drupal-discourse-sso/160650>\
**Category:** SSO\
**Tags:** discourseconnect\
**Created:** [12 augustus 2020 om 17:05 UTC](https://meta.discourse.org/t/issue-with-drupal-discourse-sso/160650 "2020-08-12T17:05:40Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [24 september 2020 om 23:13 UTC](https://meta.discourse.org/t/issue-with-drupal-discourse-sso/160650/12 "2020-09-24T23:13:26Z")

</div>

> [@Shenron\_segamag](#):
>
> When SSO is enabled, if I log out then try to log in again, I’m automatically logged in as the first account.

It sounds like logging out of Discourse is not synchronized with logging out of the SSO provider site. SInce you are still logged into the SSO provider site, the next time you click the Discourse Login link, you are authenticated based on being logged into the SSO provider.

The Discourse `logout redirect` site setting can be used to log users out of the SSO provider site. When a user logs out of Discourse, they will be automatically redirected to that URL. The SSO provider will need to handle the URL to log out the user. I’m not familiar enough with Drupal to know what would need to be done to implement this though.

---

_[View the full topic](https://meta.discourse.org/t/issue-with-drupal-discourse-sso/160650)._
