# WordPress 플러그인이 Discourse 로그인으로 자동 리다이렉트되지 않음

**URL:** https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049
**Category:** WordPress
**Created:** [10월 2, 2021, 12:08오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049 "2021-10-02T12:08:40Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [10월 2, 2021, 12:08오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/1 "2021-10-02T12:08:40Z")

</div>

안녕하세요,

저는 WordPress 멀티사이트를 사용하며, [Discourse SSO](https://meta.discourse.org/t/13045?silent=true)를 WordPress의 제공자로 사용하기 위해 Discourse 플러그인을 설치했습니다. 하지만 WordPress 단일 사이트에서는 정상적으로 작동하지 않습니다. wp-admin에 로그인하려고 하면 WordPress 로그인 페이지만 표시되고, Discourse 로그인으로 자동으로 리다이렉트되지 않습니다.

WordPress 멀티사이트 환경에서 SSO를 사용한 경험이 있으신가요?

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [10월 2, 2021, 12:31오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/2 "2021-10-02T12:31:05Z")

</div>

/wp-login.php로 접속하면 어떻게 되나요?

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [10월 2, 2021, 1:18오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/3 "2021-10-02T13:18:24Z")

</div>

> [@IAmGav](#):
>
> /wp-login.php

같은 거예요.  
그것은 wp 로그인 페이지이며, discourse 로그인으로 리다이렉트할 수 없습니다.

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [10월 2, 2021, 1:19오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/4 "2021-10-02T13:19:34Z")

</div>

플러그인이 “네트워크 활성화” 상태인가요?

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [10월 2, 2021, 1:35오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/5 "2021-10-02T13:35:03Z")

</div>

질문을 이해하지 못하지만, 제 네트워크 설정은 다음과 같습니다:

 ![EWfcEC8mBD](https://global.discourse-cdn.com/meta/original/3X/4/1/41756d76569d0f888d023de4e3e6fa70c3bbd3b7.png)

---

<div class="post-metadata">

### Author: ![Pigeon](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@Pigeon](https://meta.discourse.org/u/Pigeon)
#### Post date: [10월 4, 2021, 10:56오전 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/6 "2021-10-04T10:56:38Z")

</div>

저도 같은 것을 해보고 싶습니다.

이것이 실제로 필요한 작업인지 확신할 수는 없지만, Discourse 인스턴스에 관리자로 로그인한 후 설정-\>로그인 메뉴로 이동하여 아래 체크박스들을 확인해야 할 것 같습니다.

첫 번째 체크박스는 다른 사이트를 통해 인증하여 Discourse에 로그인할 수 있도록 허용하는 것처럼 보입니다. 이는 원하시는 것이 아닙니다.

두 번째와 세 번째 체크박스가 우리가 원하는 것 같습니다.

아시는 분이 이 조언을 확인하거나 수정해 주시면 좋겠습니다.

 ![discourse connect provider](https://global.discourse-cdn.com/meta/original/3X/0/e/0eceda93ffd9cccf7d7105a897112596b88c48e4.png)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [10월 4, 2021, 12:27오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/7 "2021-10-04T12:27:53Z")

</div>

여러분, WordPress를 Discourse Provider의 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 클라이언트로 사용하는 것은 지원되지 않습니다. 아래 링크를 참고해 주세요.

> [@Install and configure the WP Discourse Wordpress plugin for Discourse](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752):
>
> To get started with the [WP Discourse](https://github.com/discourse/wp-discourse) Plugin, go through each of these topics in order and watch the videos at the top of the topic. [Install the plugin](https://meta.discourse.org/t/install-the-wp-discourse-plugin/223489/1)[Connect to Discourse](https://meta.discourse.org/t/connect-wp-discourse-to-discourse/223490/1)[Set up Publishing](https://meta.discourse.org/t/wp-discourse-and-publishing-posts-to-discourse/223492/1)[Set up Commenting](https://meta.discourse.org/t/wp-discourse-and-commenting/223493/1)[Set up DiscourseConnect](https://meta.discourse.org/t/wp-discourse-and-discourseconnect/223494/1) The two main plugin features, Publishing and [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) don’t have to be used together. You can just set up Publishing (and Commenting), and not use [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true), or just set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true), or set up both. There’s a short description of each featu…

특히 **멀티사이트 지원** 부분을 확인해 주세요.

> [WP Discourse](https://github.com/discourse/wp-discourse) 플러그인은 WordPress 멀티사이트 환경에서, WordPress를 Discourse 사이트의 [DiscourseConnect](https://meta.discourse.org/t/13045) _클라이언트_로 사용하는 경우를 제외하고 모든 기능에서 정상적으로 작동합니다.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [11월 4, 2021, 3:56오전 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/8 "2021-11-04T03:56:48Z")

</div>

해당 옵션을 다시 테스트해 보았을 때 “too many redirect”(리다이렉션이 너무 많음) 오류가 발생했습니다.

```plaintext
https://phuonghuynh.org/wp-admin/index.php?redirect_to=https%3A%2F%2Fphuonghuynh.org%2Fwp-admin%2Findex.php%3Fredirect_to%3Dhttps%253A%252F%252Fphuonghuynh.org%252Fwp-admin%252Findex.php%253Fredirect_to%253Dhttps%25253A%25252F%25252Fphuonghuynh.org%25252Fwp-admin%25252Findex.php%25253Fredirect_to%25253Dhttps%2525253A%2525252F%2525252Fphuonghuynh.org%2525252Fwp-admin%2525252Findex.php%2525253Fredirect_to%2525253Dhttps%252525253A%252525252F%252525252Fphuonghuynh.org%252525252Fwp-admin%252525252Findex.php%252525253Fredirect_to%252525253Dhttps%25252525253A%25252525252F%25252525252Fphuonghuynh.org%25252525252Fwp-admin%25252525252Findex.php%25252525253Fredirect_to%25252525253Dhttps%2525252525253A%2525252525252F%2525252525252Fphuonghuynh.org%2525252525252Fwp-admin%2525252525252Findex.php%2525252525253Fredirect_to%2525252525253Dhttps%252525252525253A%252525252525252F%252525252525252Fphuonghuynh.org%252525252525252Fwp-admin%252525252525252Findex.php%252525252525253Fredirect_to%252525252525253Dhttps%25252525252525253A%25252525252525252F%25252525252525252Fphuonghuynh.org%25252525252525252Fwp-admin%25252525252525252Findex.php%25252525252525253Fredirect_to%25252525252525253Dhttps%2525252525252525253A%2525252525252525252F%2525252525252525252Fphuonghuynh.org%252525252525252525252Fwp-admin%252525252525252525252Findex.php%25252525252525252525253Fredirect_to%2525252525252525253Dhttps%252525252525252525253A%25252525252525252525252F%2525252525252525252525252Fphuonghuynh.org%2525252525252525252525252Fwp-admin%2525252525252525252525252Findex.php%2525252525252525252525253Fredirect_to%252525252525252525253Dhttps%25252525252525252525253A%2525252525252525252525252F%252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252Fwp-admin%25252525252525252525252525252Findex.php%252525252525252525252525253Fredirect_to%25252525252525252525253Dhttps%2525252525252525252525253A%252525252525252525252525252F%25252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252Fwp-admin%2525252525252525252525252525252Findex.php%25252525252525252525252525253Fredirect_to%2525252525252525252525253Dhttps%252525252525252525252525253A%25252525252525252525252525252F%2525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252Findex.php%2525252525252525252525252525253Fredirect_to%252525252525252525252525253Dhttps%25252525252525252525252525253A%2525252525252525252525252525252F%252525252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252Findex.php%252525252525252525252525252525253Fredirect_to%25252525252525252525252525253Dhttps%2525252525252525252525252525253A%252525252525252525252525252525252F%25252525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252525252Fwp-admin%2525252525252525252525252525252525252Findex.php%25252525252525252525252525252525253Fredirect_to%2525252525252525252525252525253Dhttps%252525252525252525252525252525253A%25252525252525252525252525252525252F%2525252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252525252Findex.php%2525252525252525252525252525252525253Fredirect_to%252525252525252525252525252525253Dhttps%25252525252525252525252525252525253A%2525252525252525252525252525252525252F%252525252525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252525252525252Findex.php%252525252525252525252525252525252525253Fredirect_to%25252525252525252525252525252525253Dhttps%25252525252525252525252525252525252525253A%252525252525252525252525252525252525252F%25252525252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252525252525252Findex.php%25252525252525252525252525252525252525253Fredirect_to%2525252525252525252525252525252525253Dhttps%2525252525252525252525252525252525252525253A%25252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252525252525252525252Fwp-admin%2525252525252525252525252525252525252525252525252Findex.php%2525252525252525252525252525252525252525253Fredirect_to%252525252525252525252525252525252525253Dhttps%252525252525252525252525252525252525252525253A%252525252525252525252525252525252525252525252F%25252525252525252525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252525252525252525252Findex.php%252525252525252525252525252525252525252525253Fredirect_to%25252525252525252525252525252525252525253Dhttps%25252525252525252525252525252525252525252525253A%2525252525252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252525252525252525252F

```

확인해 주실 수 있으신가요?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [11월 4, 2021, 11:13오전 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/9 "2021-11-04T11:13:16Z")

</div>

위 내용을 참고해 주세요.

> [@angus](#):
>
> [WP Discourse](https://github.com/discourse/wp-discourse) 플러그인은 WordPress 멀티사이트 환경에서, Discourse 사이트를 위한 [DiscourseConnect](https://meta.discourse.org/t/13045) _클라이언트_로 WordPress를 사용하는 경우를 제외하고 모든 기능에서 작동합니다.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [11월 4, 2021, 11:20오전 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/10 "2021-11-04T11:20:32Z")

</div>

감사합니다.  
그럼, 이 옵션을 비활성화하여 내 네트워크의 각 사이트에 대해 설정할 수 있을까요?

왜 이 기능을 지원하지 않나요?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [11월 4, 2021, 11:56오전 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/11 "2021-11-04T11:56:32Z")

</div>

WordPress가 멀티사이트(multisite) 환경이라면 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) Client 탭은 전혀 사용할 수 없습니다.

> [@cmdntd](#):
>
> 왜 이 기능을 지원하지 않나요?

멀티사이트 환경은 라우트 처리 방식을 변경하여, Discourse를 ID 제공자로 사용하려면 필요한 라우트 처리와 관련하여 다양한 잠재적 문제를 야기할 수 있기 때문입니다. 추후에 이 문제를 다시 검토할 수 있지만, 현재로서는 우선순위가 아닙니다.

여러 WordPress 사이트와 Discourse 사용자를 통합하는 것을 고려하고 있다면, WordPress와 Discourse 모두 기본적으로 지원하는 auth0.com과 같은 전용 ID 솔루션을 사용하는 것을 권장합니다.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [11월 4, 2021, 12:03오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/12 "2021-11-04T12:03:23Z")

</div>

아쉬운 일이네요. 이전 버전에서는 각 사이트에 이 옵션을 설정하면 잘 작동했습니다. 현재 버전에서는 사라진 것 같습니다.  
멀티사이트 네트워크에는 많은 사용자가 있으므로, 이 플러그인을 개발하여 포럼에 더 많은 사용자가 참여할 수 있도록 하면 좋겠습니다.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [11월 4, 2021, 12:11오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/13 "2021-11-04T12:11:29Z")

</div>

@simon 이가 나를 정정해 주겠지만, [WP Discourse](https://github.com/discourse/wp-discourse) 플러그인이 WordPress 멀티사이트에서 Discourse를 IDP(신원 제공자)로 사용하는 기능을 지원한 적이 없다고 생각합니다.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [11월 6, 2021, 4:52오후 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/14 "2021-11-06T16:52:19Z")

</div>

다시 인사드립니다. 제가 [Lack of Discourseconnect client tab in multisite for wordpress - #2 by angus](https://meta.discourse.org/t/lack-of-discourseconnect-client-tab-in-multisite-for-wordpress/208208/2) 에서 요청했듯이

**플러그인의 해당 이슈 마지막 리포지토리로 되돌려 주실 수 있을까요?**

각 사이트에서 “[Discourseconnect](https://meta.discourse.org/t/13045) client” 탭을 수동으로 설정하려면 이 기능이 매우 필요합니다. 테스트해 봤는데, 네트워크에서 각 사이트를 수동으로 설정하는 데는 문제가 없습니다.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [11월 8, 2021, 7:00오전 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/15 "2021-11-08T07:00:07Z")

</div>

여러 차례 언급했듯이, [WP Discourse](https://github.com/discourse/wp-discourse) 플러그인은 멀티사이트 인스턴스에서 Discourse를 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 제공자로 사용하는 것을 지원하지 않으며, 앞으로도 지원하지 않을 것입니다.

또한, [WP Discourse](https://github.com/discourse/wp-discourse)에서 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)(이전 SSO)가 작동하는 방식은 이미 오랜 시간 동안 변경된 바 없습니다. 되돌릴 수 있는 것이 없습니다.

죄송합니다만, 멀티사이트 인스턴스에서는 해당 탭이 제공되지 않기 때문에(어떻게 시도했는지는 모르겠지만) 이러한 구성을 시도하다가 사이트에 문제가 발생했다면, 직접 해결하시거나 누군가를 고용하여 해결하셔야 합니다.

우리는 이러한 방식으로 플러그인을 사용하기 위한 일종의 우회 방법을 지원하지 않았으며, 앞으로도 지원하지 않을 것입니다.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [11월 8, 2021, 7:56오전 UTC](https://meta.discourse.org/t/wordpress-plugin-not-redirect-to-discourse-login-automatically/205049/16 "2021-11-08T07:56:15Z")

</div>

음, 다시 내 사이트를 확인해 볼게요.  
답변해 주셔서 감사합니다.
