# How to use DiscourseConnect as a client only?

**URL:** https://meta.discourse.org/t/how-to-use-discourseconnect-as-a-client-only/329573
**Category:** SSO
**Created:** [October 6, 2024, 6:03pm UTC](https://meta.discourse.org/t/how-to-use-discourseconnect-as-a-client-only/329573 "2024-10-06T18:03:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cosdesign](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cosdesign/32/208585_2.png) [@cosdesign](https://meta.discourse.org/u/cosdesign)
#### Post date: [October 6, 2024, 6:03pm UTC](https://meta.discourse.org/t/how-to-use-discourseconnect-as-a-client-only/329573/1 "2024-10-06T18:03:13Z")

</div>

Hello, I would like my website visitors to only be able to log in and register with Discourse. Here’s what I did so far (but it gives me a 404 error).

**Step 1** : I created the [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) Secret Key  
**Step 2** : Enabled these options on my WP website

 ![wp-discourse-client_step1](https://global.discourse-cdn.com/meta/original/4X/2/4/0/240e56859a2699883ef75550859b17d8a5f3cf03.png)  
Step 3: Enabled these options on Discourse:

 ![wp-discourse-client_step2](https://global.discourse-cdn.com/meta/original/4X/8/7/b/87ba7f35e97c6aa84557d7667bd24dabf07f631a.png)

**Step 4:** Visited the wp-login.php and if I press the **Log in with Discourse** link or if I use this shortcode `[discourse_connect_client]` on any page, it gives me a 404 error on Discourse.

What am I missing?

 ![wp-discourse-client_step3](https://global.discourse-cdn.com/meta/original/4X/3/9/9/399e9da80a1b001ae7d5f36756b38b8d59fb2693.png)

Any help is appreciated.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 6, 2024, 9:40pm UTC](https://meta.discourse.org/t/how-to-use-discourseconnect-as-a-client-only/329573/2 "2024-10-06T21:40:51Z")

</div>

You have configured Discourse as if it would use Wordpress to authenticate, which is not what you want to do.

You should remove all [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) settings you’ve made on Discourse side and make the following settings in Admin - Settings - Login instead:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/0/4/3043f1e79f868cedf4ce7c1560b7599c13c39515.png)

---

<div class="post-metadata">

### Author: ![cosdesign](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cosdesign/32/208585_2.png) [@cosdesign](https://meta.discourse.org/u/cosdesign)
#### Post date: [October 7, 2024, 7:11am UTC](https://meta.discourse.org/t/how-to-use-discourseconnect-as-a-client-only/329573/3 "2024-10-07T07:11:39Z")

</div>

Thanks for your help, now is working. And btw I was getting this error because I pasted my website URL with https:// in front (it should be just [yourwebsite.com](http://yourwebsite.com)):

“Authentication failed due to missing secret. Contact the site administrators to fix this problem.”

And I must say that these settings are a bit confusing. As in your image, I should’ve enabled the [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) Provider option on Discourse, although the [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) Provider tab on WP says the opposite of what I wanted:

" _Enabling your site to function as the [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider transfers all user authentication from Discourse to WordPress._".

They should be renamed and or/separated by a title or maybe on different tabs as they are on WordPress.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 6, 2024, 7:12am UTC](https://meta.discourse.org/t/how-to-use-discourseconnect-as-a-client-only/329573/4 "2024-11-06T07:12:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
