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

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:


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!