使用 discourse-oauth2-basic 插件时出现错误,NeonCRM

嘿,Denis,

我使用的是 Mattermost,所以表现有所不同。
不过,你的信息让我更仔细地查看了设置,现在它已经可以正常工作了,谢谢!!

以下是我将 Mattermost 配置为 OAuth2 提供商以对接 Discourse 的设置:

供搜索引擎检索的文本设置:

oauth2 client id: <来自 Mattermost OAuth2 提供商设置的客户端 ID>
oauth2 client secret: <来自 Mattermost OAuth2 提供商设置的客户端密钥>
oauth2 authorize url: https://chat.animalrebellion.org/oauth/authorize
oauth2 token url: https://chat.animalrebellion.org/oauth/access_token
oauth2 token url method: POST
oauth2 callback user id path:
oauth2 callback user info paths
oauth2 fetch user details: 已勾选
oauth2 user json url: https://chat.animalrebellion.org/api/v4/users/me
oauth2 user json url method: GET
oauth2 json user id path: id
oauth2 json username path: username
oauth2 json name path: username
oauth2 json email path: email
oauth2 json email verified path: email_verified
oauth2 json avatar path:
oauth2 email verified: 已勾选

在 Mattermost 一侧,回调 URL 设置为:
https://base.animalrebellion.org/auth/oauth2_basic/callback

我仍然希望能看到如何将 first_name 和 last_name 合并到“JSON name path”中以生成 full_name,不过目前仅使用“username”或“first_name”属性也可以接受。

希望这能帮到你!

祝好!
Beam

相关资源链接:
插件链接:GitHub - discourse/discourse-oauth2-basic: A basic OAuth2 plugin for use with Discourse · GitHub
Discourse 插件安装指南:Install plugins on a self-hosted site

1 个赞