# 自托管 Discourse 实例中的 OpenID Connect 支持

**URL:** https://meta.discourse.org/t/openid-connect-support-in-selfhosted-discourse-instance/194981
**Category:** SSO
**Tags:** openid-connect
**Created:** [2021年六月25日 08:10 UTC](https://meta.discourse.org/t/openid-connect-support-in-selfhosted-discourse-instance/194981 "2021-06-25T08:10:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sai\_Krishna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sai_krishna/32/210204_2.png) [@Sai\_Krishna](https://meta.discourse.org/u/Sai_Krishna)
#### Post date: [2021年六月25日 08:10 UTC](https://meta.discourse.org/t/openid-connect-support-in-selfhosted-discourse-instance/194981/1 "2021-06-25T08:10:01Z")

</div>

你好，

我们在 AWS 上有一个自托管的 Discourse 实例，已安装了 OpenID Connect 插件：[https://github.com/discourse/discourse-openid-connect。我们计划与](https://github.com/discourse/discourse-openid-connect%E3%80%82%E6%88%91%E4%BB%AC%E8%AE%A1%E5%88%92%E4%B8%8E) Amazon Cognito 进行集成，并遵循了以下链接中提到的步骤：[https://meta.discourse.org/t/openid-connect-authentication-plugin/103632。](https://meta.discourse.org/t/openid-connect-authentication-plugin/103632%E3%80%82)

但我遇到了以下错误页面：

 ![discourse](https://global.discourse-cdn.com/meta/original/3X/a/d/ad85f93876fd00c43583f7d6dc3c9515ba1c9a61.png)

请问 OpenID Connect 支持是否强制要求商业版计划？或者在自托管版本中是否有其他方式可以实现集成？请予以澄清。

谢谢，  
Saikrishna

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [2021年六月25日 10:52 UTC](https://meta.discourse.org/t/openid-connect-support-in-selfhosted-discourse-instance/194981/2 "2021-06-25T10:52:09Z")

</div>

> [@Sai\_Krishna](#):
>
> OpenID Connect 支持是否强制要求商业计划？或者我们是否可以在自托管版本中进行集成？请予以说明。

不，不需要！托管计划并非 Discourse 任何部分的许可证，它们仅仅是托管方案。插件按不同计划划分，以实现更高效的部署，因为更多插件需要更多的计算资源（如内存、存储空间、CPU 速度等）。因此，在自托管实例上，您可以使用任何插件，数量不限，但请注意所需的计算资源。

如果您需要设置 OpenID 与 Amazon Cognito 的方法或指南，请参阅此处：[Anyone have a working AWS Cognito configuration w/ ouath2, openid or sso? - #4 by weallwegot](https://meta.discourse.org/t/anyone-have-a-working-aws-cognito-configuration-w-ouath2-openid-or-sso/123579/4?u=osioke)

随时使用搜索 🔍 来查找此类内容 😉，我也是通过搜索刚刚找到的。

---

<div class="post-metadata">

### Author: ![Sai\_Krishna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sai_krishna/32/210204_2.png) [@Sai\_Krishna](https://meta.discourse.org/u/Sai_Krishna)
#### Post date: [2021年六月25日 12:16 UTC](https://meta.discourse.org/t/openid-connect-support-in-selfhosted-discourse-instance/194981/3 "2021-06-25T12:16:50Z")

</div>

感谢 Osioke  
我已尝试您提到的上述步骤，但收到了以下错误消息。我按照链接中提到的步骤操作了：

{“code”:“BadRequest”,“message”:“服务器无法理解请求的操作。”,“type”:“client”}
