Discourse Salesforce

:discourse2: 요약 Discourse Salesforce 플러그인은 Discourse 사용자와 Salesforce 리드/연락처 간의 동기화를 허용하며, Salesforce 소셜 로그인을 활성화합니다.
:hammer_and_wrench: 저장소 링크 https://github.com/discourse/discourse-salesforce
:open_book: 설치 가이드 Discourse에서 플러그인 설치 방법

Salesforce 리드/연락처 및 Discourse 사용자 간 동기화

게시물 메뉴를 사용하여 모든 Discourse 사용자로부터 Salesforce 리드 또는 연락처를 생성할 수 있습니다. 이러한 사용자를 쉽게 구별할 수 있도록 게시물에서 사용자 이름 옆에 게시자 아이콘이 표시됩니다. 해당 Salesforce 객체에는 이러한 Discourse 사용자 프로필에 대한 링크백이 포함됩니다.

생성된 리드와 연락처는 자동으로 Discourse 사용자 그룹에 추가됩니다.

리드 또는 연락처가 새 주제를 생성하면, Chatter에서 피드 항목으로 추가됩니다.

Salesforce 케이스 및 Discourse 주제 간 동기화

주제 관리자 메뉴에서 모든 Discourse 주제에 대해 Salesforce 케이스를 생성할 수 있습니다. 주제 작성자는 자동으로 Salesforce 연락처로 생성됩니다.

Salesforce로 로그인 (OAuth)

이 플러그인은 Salesforce 로그인을 허용하여 Salesforce 사용자가 Discourse에 가입하는 것이 더 쉬워집니다.

설정

단계 1부터 3까지는 새로운 (2025) 외부 클라이언트 앱 관리자를 사용하여 Salesforce 콘솔에서 설정하는 내용을 다룹니다. 단계 4와 5는 Discourse Salesforce 플러그인에서 설정하는 내용을 다룹니다.

단계 1: 외부 클라이언트 앱 관리자 접근

오른쪽 위 톱니바퀴 아이콘에서 설정을 클릭합니다. "외부 클라이언트 앱 관리자"를 검색합니다.

📸


단계 2: 새 외부 클라이언트 앱 생성

"기본 정보"를 입력한 후 OAuth 설정을 활성화합니다.

콜백 URL은 다음과 같아야 합니다.

  • https://<your-discourse-site>
  • https://<your-discourse-site>/auth/salesforce/callback

다음의 사용 가능한 OAuth 범위를 추가합니다.

  • ID URL 서비스에 액세스 (id, profile, email, address, phone)
  • API를 통해 사용자 데이터 관리 (api)
  • 언제든지 요청 수행 (refresh_token, offline_access)

Flow 활성화에서

  • Client Credentials Flow 활성화
  • JWT Bearer Flow 활성화 (이것은 리드와 연락처 생성을 위한 것입니다)
    • 서명 생성
    • server.crt 파일 업로드 (이 가이드는 server.crtserver.key 파일을 생성한다고 가정합니다)
    • server.key 파일을 사이트에서 보관합니다.

저장합니다.

📸



단계 3: 새 외부 클라이언트 앱의 Consumer secrets 가져오기

새로 생성된 외부 클라이언트 앱에서 설정 탭으로 이동한 후 아래로 스크롤하여 OAuth 설정을 확장합니다.

"Consumer Key and Secret"을 클릭하고 다시 로그인 자격 증명을 입력한 다음 다음 단계로 진행합니다.

📸

단계 4: Discourse Salesforce 플러그인 설정에 세부 정보 입력

https://<your-discourse-site>/admin/plugins/discourse-salesforce/settings로 이동합니다.

업데이트해야 하는 설정이 6개 + 1개 있습니다.

  • “salesforce enabled” 체크
  • “salesforce login enabled” 체크
  • 이전 단계의 Consumer Key를 사용하여 “salesforce client id” 입력
  • 이전 단계의 Consumer Secret을 사용하여 “salesforce client secret” 입력
  • 위에서 생성한 server.key 파일로 “salesforce rsa private key” 입력
  • Salesforce 조직의 관리자 이메일로 “salesforce username” 입력. 이것은 Salesforce의 시스템 관리자여야 합니다.
  • 사용자 지정 Salesforce 도메인이 있는 경우: salesforce authorization server url

단계 5: Salesforce를 위한 Discourse 앱 승인

https://<your-discourse-site>/salesforce/admin/authorize로 이동합니다.

앱을 승인하도록 프롬프트가 표시됩니다.

📸

:discourse2: 저희가 호스팅을 제공하나요? 이 플러그인은 저희의 엔터프라이즈 플랜에서 사용할 수 있습니다.

14개의 좋아요

Hi there,

I seem to have hit some snag along the way while trying to complete this process. As the configuration portion of this wasn’t super clear I followed a combination of this guide and This one from SalesForce

I have created the app on the sales force side with oauth and the self-signed server.crt uploaded to the app. The call back URL (Step 6 in the salesforce guide) I put in https://login.salesforce.com as the default in discord settings as the suggested local host URL didn’t make much sense. We have the consumer key and secret as well as the RSA key and my salesforce admin email address all entered in the discourse plugin settings for salesforce but we are not seeing things like the created lead generation on the discourse side. Does anyone have a step-by-step guide we can review or any insights in testing and getting this sorted out?

Thanks!
Tim

I added a few more detailed steps in the configuration section in the OP.

2개의 좋아요