# OAuth 2 和其他 discourse 网站？

**URL:** https://meta.discourse.org/t/oauth-2-and-other-discourse-sites/172851
**Category:** Support
**Created:** [2020年十二月10日 11:49 UTC](https://meta.discourse.org/t/oauth-2-and-other-discourse-sites/172851 "2020-12-10T11:49:27Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [2020年十二月10日 13:29 UTC](https://meta.discourse.org/t/oauth-2-and-other-discourse-sites/172851/4 "2020-12-10T13:29:23Z")

</div>

> [@Joshua\_Kogan](#):
>
> 所以，走这条路将允许我为我的登录按钮（Facebook、Discord、GitHub、Google 等）添加一个新按钮。

是的，这是官方 [WP Discourse 插件](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752#sso-settings) 的一种可能配置（仅是 SSO 提供商/SSO 客户端关系的示例）。

如果您正在启动的站点是另一个 Discourse 实例，这也可能是可行的，但我不确定 meta 上是否有关于这种方法的任何文档。

> [@Joshua\_Kogan](#):
>
> 针对另一个我并未拥有和运营的 Discourse 论坛？

这是不可能的。如果没有额外的安全步骤，您无法从任何外部网站获取私人用户数据；在这种情况下，安全步骤体现为执行 SSO 流程时使用的 `sso provider secrets`（SSO 提供商密钥）。

---

_[View the full topic](https://meta.discourse.org/t/oauth-2-and-other-discourse-sites/172851)._
