DiscourseへのMastodon認証でのログイン

Is there any way to integrate mastodon login on disocurse? If yes then how can I do that.

Doesnt look like it is possible at the moment but there has been discussion on it here:

https://discourse.joinmastodon.org/t/single-sign-on-with-discourse/766

  1. OAuth2 を有効にするために、このプラグインをインストールしてください。
    GitHub - discourse/discourse-oauth2-basic: A basic OAuth2 plugin for use with Discourse · GitHub

  2. Mastodon でアプリケーションを作成してください

アプリケーション名: Discourse Login
アプリケーションのウェブサイト: https://<YOUR_DISCOURSE>/auth/oauth2_basic/callback
リダイレクト URI: https://<YOUR_DISCOURSE>/auth/oauth2_basic/callback

  1. Discourse で OAuth2 プラグインを設定してください

oauth2 クライアント ID: Mastodon アプリのクライアントキー
oauth2 クライアントシークレット: Mastodon アプリのクライアントシークレット
oauth2 認可 URL: https://<YOUR_MASTODON>/oauth/authorize
oauth2 トークン URL: https://<YOUR_MASTODON>/oauth/token
oauth2 ユーザー JSON URL: https://<YOUR_MASTODON>/api/v1/accounts/verify_credentials
oauth2 JSON ユーザー ID パス: id
oauth2 JSON ユーザー名パス: username
oauth2 JSON 名前パス: display_name
oauth2 JSON アバターパス: avatar

関連スレッド: