# 设置 DiscourseConnect - Discourse 官方单点登录 (sso)

**URL:** <https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045>\
**Category:** Integrations\
**Tags:** sso, discourseconnect, configuring, how-to\
**Created:** [2014年二月25日 08:30 UTC](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045 "2014-02-25T08:30:34Z")\
**Posts on this page:** 1\
**Showing post:** 609

<div class="post-metadata">

**Author:** ![markschmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markschmucker/32/141599_2.png) [@markschmucker](https://meta.discourse.org/u/markschmucker)\
**Post date:** [2025年五月22日 15:45 UTC](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045/609 "2025-05-22T15:45:28Z")

</div>

我们已经成功地将 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 与 WordPress 作为提供商一起使用了好几年，并且没有更改 Discourse 或 WP 的配置。今天我注意到一个我认为是新的行为。

当我注销时，它以前会带我到 WordPress 登录屏幕。现在它会带我到 Discourse 登录屏幕。如果我尝试使用 Discourse 屏幕登录，我会收到一个“未知错误”，但关键是我根本不应该出现在那里——我应该在 WP 登录界面。

[![](https://global.discourse-cdn.com/meta/optimized/4X/5/5/c/55c0b85220b9bcaa91bc2f41974b1b2630301e31_2_517x288.png) ](https://global.discourse-cdn.com/meta/optimized/4X/5/5/c/55c0b85220b9bcaa91bc2f41974b1b2630301e31_2_517x288.png)

请注意，我确实启用了本地登录（不确定为什么，因为我正在使用 WP）。如果我禁用本地登录并尝试登录，它会说没有可用的登录方法。所以我想它不喜欢我的 WP 连接，但同样，我没有更改任何一端的配置。我已确认 [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) 已启用，连接 URL 正确，并且两端的密钥相同。

已更新至 3.5.0.beta5-dev。[WP Discourse](https://github.com/discourse/wp-discourse) 插件也已更新。

---

_[View the full topic](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045)._
