데니스, 안녕하세요.
저는 Mattermost를 사용하고 있어서 동작 방식이 조금 다릅니다.
하지만 데니스님의 정보를 덕분에 설정을 더 자세히 살펴볼 수 있었고, 결국 잘 작동하게 만들었습니다. 감사합니다!!
Mattermost를 Discourse의 oauth2 제공자로 사용할 때 제 설정은 다음과 같습니다:
검색 엔진을 위해 설정 내용을 텍스트로 정리하면 다음과 같습니다:
oauth2 client id: <mattermost oauth2 제공자 설정에서 가져온 client id>
oauth2 client secret: <mattermost oauth2 제공자 설정에서 가져온 client secret>
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
