# OAuth SSO 自动会话管理

**URL:** https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204
**Category:** SSO
**Created:** [2020年十月14日 15:57 UTC](https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204 "2020-10-14T15:57:22Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2020年十月14日 18:28 UTC](https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204/4 "2020-10-14T18:28:11Z")

</div>

> [@vagosduke](#):
>
> 我使用的是 Discourse 2.5.2 版本，不知是否相关。

在最新版本的 Discourse 中，只要同时启用了“需要登录”和“立即认证”，并且用户在身份提供商处已拥有有效的 Cookie，系统就会自动将该用户登录到 Discourse。

在早期版本中，这种“神奇”的登录流程仅限于使用我们自有 SSO 协议的站点，相关说明请参阅 [Discourse 官方单点登录 (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045)。

建议您升级到最新版本。

---

_[View the full topic](https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204)._
