OpenID Connect를 사용하여 LinkedIn 로그인 설정

:bookmark: 이 가이드는 LinkedIn OpenID Connect 인증을 Discourse 사이트에 설정하는 방법을 설명합니다. 이를 통해 사용자는 LinkedIn 계정으로 로그인할 수 있습니다.

:person_raising_hand: 필요한 사용자 권한: 관리자

요약

LinkedIn OpenID Connect 인증은 사용자가 LinkedIn 계정을 사용하여 Discourse 사이트에 로그인할 수 있게 해줍니다. 이 가이드에서는 LinkedIn 개발자 애플리케이션 생성부터 Discourse 사이트에서 해당 기능을 활성화하는 과정까지 LinkedIn 인증 설정 방법을 안내합니다.

LinkedIn 애플리케이션 생성

  1. LinkedIn Developers로 이동합니다.
  2. “Create app” 버튼을 클릭합니다.
  3. 제공된 설정 과정을 따릅니다.

:information_source: 애플리케이션과 연결된 LinkedIn 페이지가 필요합니다. 이 연결은 나중에 변경할 수 없으므로 설정 시 올바른 페이지를 선택했는지 확인하세요.

OpenID Connect 활성화

  1. LinkedIn 애플리케이션의 “Products” 탭으로 이동합니다.
  2. "Sign In with LinkedIn using OpenID Connect"에 대한 액세스를 요청합니다.

자격 증명 가져오기

Sign In with LinkedIn이 활성화된 후:

  1. “View endpoints” 버튼을 클릭합니다.
  2. 자격 증명에 액세스하려면 “Auth” 탭을 선택합니다.

Discourse 설정 구성

  1. Discourse 관리자 설정에서 LinkedIn에서 가져온 자격 증명으로 다음 필드를 구성합니다:

    • linkedin_oidc_client_id
    • linkedin_oidc_client_secret
  2. LinkedIn 개발자 포털로 돌아가 “Auth” 탭에서 승인된 리다이렉트 URL을 추가합니다:

    • 형식: https://discourse.example.com/auth/linkedin_oidc/callback
    • discourse.example.com을 사이트 도메인 이름으로 대체합니다.
    • LinkedIn은 리다이렉트 URL이 https://를 사용하도록 요구합니다.

  1. Discourse 사이트에서 LinkedIn 인증을 활성화합니다:
    • 사이트 설정에서 enable_linkedin_oidc_logins를 true로 설정합니다.

문제 해결

클라이언트 시크릿 검증 관련 문제가 발생하면, LinkedIn의 새로운 시크릿 형식을 수용하기 위해 최근 업데이트가 이루어졌으므로 최신 버전의 Discourse를 실행 중인지 확인하세요.

자주 묻는 질문

LinkedIn 로그인 시 사용자가 Discourse에서 LinkedIn 자격 증명을 입력해야 하나요?

아니요, 사용자는 LinkedIn의 안전한 로그인 페이지로 리다이렉트되어 인증을 받은 후 승인되면 Discourse 사이트로 돌아옵니다.

리다이렉트 URL 프로토콜(http vs https)에 무엇을 사용해야 하나요?

LinkedIn은 리다이렉트 URL이 https://를 사용하도록 요구합니다. Discourse 사이트가 HTTPS로 구성되었는지 확인하고 리다이렉트 URL에 https:// 프로토콜을 사용하세요.

추가 리소스

4개의 좋아요

4 posts were split to a new topic: LinkedIn OIDC client secret not correctly validating nee format

The key format does not match

The discourse team has made updates consistent with linkedin’s update in the source code, please update your discourse page.
Read it LinkedIn OIDC client secret not correctly validating new format - #4 by ted

1개의 좋아요

Fun, this feature is not enabled on this Discourse :wink:

1개의 좋아요

Hi, how LinkedIn sign-in works? Does this means LinkedIn email and password will be used without need to enter them in Discourse? Thanks.

I wanted to try LinkedIn signin on my site (from a private Firefox window) and I got this error message: The redirect_uri does not match the registered value

Hi, is “replacing the https with http” right? My site is in https so http would’nt work is it? Thanks.

Hi, All my settings are correct in Discourse and LinkedIn and though, one user just reported to me that he cannot login using LinkedIn, What should I do to check my settings are working? Thanks.

This appears to be broken or this guide is outdated and needs to be revised. See my post here: Linkedin OAUTH Core Function - "The redirect_uri does not match the registered value"