# SSO\_SYNC not found

**URL:** https://meta.discourse.org/t/sso-sync-not-found/223481
**Category:** SSO
**Tags:** rest-api
**Created:** [April 6, 2022, 11:27am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481 "2022-04-06T11:27:42Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![lin\_turing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lin_turing/32/254613_2.png) [@lin\_turing](https://meta.discourse.org/u/lin_turing)
#### Post date: [April 6, 2022, 11:27am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/1 "2022-04-06T11:27:42Z")

</div>

I need some assistance with the /admin/users/sso\_sync end point.  
postman is returning a HTML page as response

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/3/73ca8234cc232f63cf5fa1096d00f3f7883dadf2.jpeg)  
Can someone advise where Im going wrong.

---

<div class="post-metadata">

### Author: ![lin\_turing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lin_turing/32/254613_2.png) [@lin\_turing](https://meta.discourse.org/u/lin_turing)
#### Post date: [April 7, 2022, 2:48am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/2 "2022-04-07T02:48:22Z")

</div>

/admin/users/sync\_sso calls a missing route

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

---

<div class="post-metadata">

### Author: ![lin\_turing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lin_turing/32/254613_2.png) [@lin\_turing](https://meta.discourse.org/u/lin_turing)
#### Post date: [April 8, 2022, 5:31am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/3 "2022-04-08T05:31:57Z")

</div>

can anyone help me? 😭 😭 😭

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 8, 2022, 9:27am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/4 "2022-04-08T09:27:12Z")

</div>

There’s some discussion on a similar issue in this topic [/admin/users/sync\_sso ... Route not found](https://meta.discourse.org/t/admin-users-sync-sso-route-not-found/85819), if that’s any help to you?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 8, 2022, 2:59pm UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/5 "2022-04-08T14:59:13Z")

</div>

Can you try sending api\_key and api\_username as headers per

> [@Discourse REST API Documentation](https://meta.discourse.org/t/discourse-rest-api-documentation/22706/1):
>
> **On April 6th, 2020 we dropped support for all non-HTTP header based authentication.** This means that API requests that have an `api_key` and `api_username` in the query params or in the HTTP body of the request will soon stop working. Please see the example cURL request below for how to update your API requests to use the HTTP headers for authentication.

---

<div class="post-metadata">

### Author: ![lin\_turing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lin_turing/32/254613_2.png) [@lin\_turing](https://meta.discourse.org/u/lin_turing)
#### Post date: [April 11, 2022, 7:00am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/6 "2022-04-11T07:00:35Z")

</div>

thank you ~ 🥰 🥰,this is very helpful for me

---

<div class="post-metadata">

### Author: ![lin\_turing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lin_turing/32/254613_2.png) [@lin\_turing](https://meta.discourse.org/u/lin_turing)
#### Post date: [April 13, 2022, 3:42am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/7 "2022-04-13T03:42:20Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/9/1/1/91173c4799c1ee5e45784805d4034bd768312f11.jpeg)

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/e/f/defb86f4cdedf66d6425594009ed6a576bccddf5.jpeg)

```plaintext
Started POST "/admin/users/sync_sso" for ip address at 2022-04-13 08:13:14 +0000
ActionController::RoutingError (No route matches [POST] "/admin/users/sync_sso")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'

```

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [April 13, 2022, 12:49pm UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/8 "2022-04-13T12:49:37Z")

</div>

Does regenerating the system api key help?

> [@/admin/users/sync\_sso ... Route not found](https://meta.discourse.org/t/admin-users-sync-sso-route-not-found/85819/22):
>
> regenerating the system api key has seem to have done the trick for some reason, though i dont know why. So I can now use the SSO\_SYNC via postman.

---

<div class="post-metadata">

### Author: ![lin\_turing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lin_turing/32/254613_2.png) [@lin\_turing](https://meta.discourse.org/u/lin_turing)
#### Post date: [April 14, 2022, 8:29am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/9 "2022-04-14T08:29:36Z")

</div>

no help, when i request is local, with not error, but when i request server, will go wrong

---

<div class="post-metadata">

### Author: ![LeBlanc](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@LeBlanc](https://meta.discourse.org/u/LeBlanc)
#### Post date: [May 20, 2022, 8:53am UTC](https://meta.discourse.org/t/sso-sync-not-found/223481/10 "2022-05-20T08:53:30Z")

</div>

the problem was sending the wrong body type and Content-Type, so the sig/sso params couldn’t be parsed out. I can give you an example . use Content-Type with multipart/form-data; and use http Body with raw text (sso=$sso&sig=$sig).
