# Discourse를 OAuth2/OIDC Provider로 지원하기

**URL:** https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924
**Category:** Extras
**Created:** [6월 19, 2025, 4:22오후 UTC](https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924 "2025-06-19T16:22:48Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![cuo\_wu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cuo_wu/32/498442_2.png) [@cuo\_wu](https://meta.discourse.org/u/cuo_wu)
#### Post date: [6월 19, 2025, 4:22오후 UTC](https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924/1 "2025-06-19T16:22:48Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **요약** | Oauth2/OIDC 제공자. 사용자가 자신의 앱을 생성할 수 있습니다. |
| 🛠 | **다운로드 링크** | [https://vvpp.cc/s/GPmCV](https://vvpp.cc/s/GPmCV) |

  

### 기능

우리는 Discourse가 공식적으로 Oauth2/OIDC 제공자 역할을 수행하는 솔루션을 사용하지 않는다는 것을 알고 있습니다.

서비스를 더 잘 구현하고, 모두가 더 많은 아이디어를 NL에 가져올 수 있도록 하기 위해, NL은 [Parkour-Vienna/distrust: Use discourse as an OIDC (OAuth 2.0) provider](https://github.com/Parkour-Vienna/distrust)를 기반으로 사용자가 직접 앱을 신청할 수 있는 Oauth2/OIDC 제공자를 구현했습니다.

### 설정

사용자 관련 데이터는 Mysql에 저장하므로, 구체적인 사용 방법은 먼저 Mysql/MariaDB를 설치하고 SQL 스크립트를 실행하여 데이터베이스를 생성하는 것입니다. 그런 다음 `distrust.yml`을 설정하여 데이터베이스 관련 내용을 구성하고, `distrust genkey`를 실행하여 해당하는 RSA 키를 생성합니다. 마지막으로 Discourse 관리 콘솔에서 [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) 제공자를 생성하고 관련 정보를 입력합니다.

그런 다음 다음을 실행합니다.

```plaintext
chmod _+x distrust
./distrust

```

`IP:3000/apps`에 액세스하면 앱 인터페이스를 볼 수 있습니다.

### 데모

 ![The image shows a user interface for an Open Authorization 2.0 (OATH2) app dashboard with options to create a new application. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/4/c/a/4ca50d27fe3531bb743be483d97e937e4e42e4d4.png)

 ![A screenshot of the OAuth2 application creation form with fields for application name, description, redirect URLs, allowed groups, and denied groups. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/8/7/187631cfc3f09396471dd9a366bd5872174ca66a.png)

 ![The image shows a successful OAuth2 application creation page with a warning to save the client secret securely. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/2/a/1/2a1df027707cd73feb89ac5c6cc6fb6d3dbcefe2.png)

 ![This image shows a screenshot of a software application interface displaying OAuth2 applications with a single active application named 'Test', along with its client ID, status, and creation date. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/e/9/8/e98dc0cf71d4b85c8a89c17f0dc1929fa12d907f.png)

사용자가 Oauth2/OIDC 로그인을 사용할 때.

 ![This image shows an authorization screen where the application named 'frenxodeloc' is requesting to access the user's profile and Discord group memberships via OpenID Connect. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/f/2/1/f217b5927260518a97776e24ced28912b92d240f.png)

---

_[View the full topic](https://meta.discourse.org/t/discourse-oauth2-oidc-provider/370924)._
