Login on discourse using mastodon credentials

  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 client id: Mastodon 앱 클라이언트 키
oauth2 client secret: Mastodon 앱 클라이언트 시크릿
oauth2 authorize url: https://<YOUR_MASTODON>/oauth/authorize
oauth2 token url: https://<YOUR_MASTODON>/oauth/token
oauth2 user json url: https://<YOUR_MASTODON>/api/v1/accounts/verify_credentials
oauth2 json user id path: id
oauth2 json username path: username
oauth2 json name path: display_name
oauth2 json avatar path: avatar

관련 스레드: