# Programmatically log users out of discourse

**URL:** https://meta.discourse.org/t/programmatically-log-users-out-of-discourse/189104
**Category:** Support
**Created:** [May 4, 2021, 7:39am UTC](https://meta.discourse.org/t/programmatically-log-users-out-of-discourse/189104 "2021-05-04T07:39:41Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Synesty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/synesty/32/218035_2.png) [@Synesty](https://meta.discourse.org/u/Synesty)
#### Post date: [May 4, 2021, 8:41am UTC](https://meta.discourse.org/t/programmatically-log-users-out-of-discourse/189104/2 "2021-05-04T08:41:33Z")

</div>

Maybe this section could be helpful.

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045#heading--logoff):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

---

_[View the full topic](https://meta.discourse.org/t/programmatically-log-users-out-of-discourse/189104)._
