# Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)

**URL:** <https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045>\
**Category:** Integrations\
**Tags:** sso, discourseconnect, configuring, how-to\
**Created:** [February 25, 2014, 8:30am UTC](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045 "2014-02-25T08:30:34Z")\
**Posts on this page:** 1\
**Showing post:** 597

<div class="post-metadata">

**Author:** ![Michael\_Liu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael_liu/32/494049_2.png) [@Michael\_Liu](https://meta.discourse.org/u/Michael_Liu)\
**Post date:** [March 21, 2025, 5:20am UTC](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045/597 "2025-03-21T05:20:20Z")

</div>

Hi @simon,  
I think I really need some help on the 404 response from my POC explore of this SSO feature. I 've been working on this issue for a whole day, but still can’t figure out the problem is. I was able to

1. enabled discourse\_connect
2. set the discourse\_connect\_url to https:/ /localhost:4200/login
3. discourse-connect secret: 20’s (1) 1111111111111111111 to keep it simple

then in my login page of my angular app I sent this request by following code:

 ![This image displays a snippet of JavaScript code that performs an API request to create a new user record on Neuralink.com with specific details and authentication setup. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/c/0/9/c09ead1eed1b14a9d3cd4dea421bf190a873cdb0.png)  
but I got the response 404 not found.

for my understanding, while sending POST request to admin/users/sync\_sso endpoint, if the user was not exist in discourse then it should create a new user based on the user\_id and email, then the returned result should be a user object shoudn’t be an empty object with status code 404.  
I also checked the log it didn’t provide any related information for this failed response.

thanks ahead!

---

_[View the full topic](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045)._
