-
安装此插件以启用 OAuth2
GitHub - discourse/discourse-oauth2-basic: A basic OAuth2 plugin for use with Discourse · GitHub
-
在 Mastodon 上创建应用
应用名称:Discourse 登录
应用网址:https://<YOUR_DISCOURSE>/auth/oauth2_basic/callback
重定向 URI:https://<YOUR_DISCOURSE>/auth/oauth2_basic/callback
- 在 Discourse 上配置 OAuth2 插件
oauth2 客户端 ID:您的 Mastodon 应用客户端密钥
oauth2 客户端密钥:您的 Mastodon 应用客户端密钥
oauth2 授权网址:https://<YOUR_MASTODON>/oauth/authorize
oauth2 令牌网址:https://<YOUR_MASTODON>/oauth/token
oauth2 用户 JSON 网址:https://<YOUR_MASTODON>/api/v1/accounts/verify_credentials
oauth2 JSON 用户 ID 路径:id
oauth2 JSON 用户名路径:username
oauth2 JSON 名称路径:display_name
oauth2 JSON 头像路径:avatar
相关讨论: