# 如何在 Ghost 博客中检测 Discourse 用户？

**URL:** https://meta.discourse.org/t/how-to-detect-discourse-user-on-ghost-blog/153073
**Category:** Support
**Created:** [2020 年5 月 28 日 09:06 UTC](https://meta.discourse.org/t/how-to-detect-discourse-user-on-ghost-blog/153073 "2020-05-28T09:06:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### 作者： ![porcorosso](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/porcorosso/32/174758_2.png) [@porcorosso](https://meta.discourse.org/u/porcorosso)
#### 发布日期： [2020 年5 月 28 日 09:06 UTC](https://meta.discourse.org/t/how-to-detect-discourse-user-on-ghost-blog/153073/1 "2020-05-28T09:06:50Z")

</div>

你好，

我正在寻找在 Ghost 博客上验证 Discourse 用户身份的思路。最佳方案是关联两个账户，但主要需求是能够在另一个网站上识别 Discourse 用户，以便展示特定内容。

目前我只找到了关于发布 Discourse 评论的文档，尚未找到有关身份验证的说明。

您有什么建议吗？  
谢谢！

---

<div class="post-metadata">

### 作者： ![ycrepeau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ycrepeau/32/177036_2.png) [@ycrepeau](https://meta.discourse.org/u/ycrepeau)
#### 发布日期： [2020 年5 月 28 日 19:20 UTC](https://meta.discourse.org/t/how-to-detect-discourse-user-on-ghost-blog/153073/2 "2020-05-28T19:20:49Z")

</div>

是的。出于明显的安全原因，该功能必须非常谨慎地实施。

基本上，您提出的要求是让每个 Discourse 站点都成为一个潜在的 OAuth2 提供者。这意味着您需要与希望用作身份源的每个 Discourse 实例所有者达成协议，包括认证密钥及其他相关事项。

您必须明白，用户数据库是一个非常、非常、极其敏感的问题。例如，如果我的站点被某个政党使用，我们并不希望有人扫描我们的用户数据库并收集高度机密的信息（例如谁在政治上支持我们）。

---

<div class="post-metadata">

### 作者： ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### 发布日期： [2020 年5 月 29 日 01:25 UTC](https://meta.discourse.org/t/how-to-detect-discourse-user-on-ghost-blog/153073/3 "2020-05-29T01:25:39Z")

</div>

> [@porcorosso](#):
>
> 你有什么想法吗？

我有……结果发现 Sam 已经为我_列举_出来了！

🧐

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045):
>
> [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…

---

<div class="post-metadata">

### 作者： ![porcorosso](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/porcorosso/32/174758_2.png) [@porcorosso](https://meta.discourse.org/u/porcorosso)
#### 发布日期： [2020 年5 月 29 日 08:32 UTC](https://meta.discourse.org/t/how-to-detect-discourse-user-on-ghost-blog/153073/4 "2020-05-29T08:32:49Z")

</div>

感谢您的回答！  
@YCrepeau 您完全正确。

基本问题在于 Ghost 尚未实现专门的认证系统，而我的社区使用的是 Discourse。

我可能会选择将保留内容放在论坛上，而不是博客上，并使用群组功能。

如果我想在网站上提供特殊内容，并识别使用该内容的论坛成员，或者简单地避免他们在两个不同的系统中注册：我可以研究 Discourse 的 SSO。但让论坛成员在博客上撰写文章将始终是不可能的（等待 Ghost 的 SSO 也许是解决方案？）

这已在路线图之中：

> <https://twitter.com/sudyk/status/1255887936555540482>

---

<div class="post-metadata">

### 作者： ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)
#### 发布日期： [2022 年3 月 10 日 07:21 UTC](https://meta.discourse.org/t/how-to-detect-discourse-user-on-ghost-blog/153073/5 "2022-03-10T07:21:15Z")

</div>

我们还在那个点吗？

我看到了那条2月份没有回复的推文：

> <https://mobile.twitter.com/LondresFrancais/status/1494627003605176320>
