fix: set dex_refresh method to get instead of POST (#10236)

### **User description**
cherry picked from v0.60.0 : the previous route for this was GET not
POST, accidentally changed in auxm migration


___

### **PR Type**
Bug fix


___

### **Description**
- Change dex_refresh route method to GET

- Revert accidental POST method change


___

### Diagram Walkthrough


```mermaid
flowchart LR
  Client["Client"]
  Handler["refresh_token_with_dex handler"]
  Client -- "GET /dex_refresh" --> Handler
```



<details> <summary><h3> File Walkthrough</h3></summary>

<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Bug
fix</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>mod.rs</strong><dd><code>Use GET for dex_refresh
route</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</dd></summary>
<hr>

src/handler/http/router/mod.rs

- Changed `/dex_refresh` route from POST to GET


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/10236/files#diff-02556e3f515441b5d2b6bbea7829df488beac03c4cc41309a6638ae3c0e0aec6">+1/-1</a>&nbsp;
&nbsp; &nbsp; </td>

</tr>
</table></td></tr></tr></tbody></table>

</details>

___

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
This commit is contained in:
Yashodhan Joshi
2026-01-29 15:08:40 +05:30
committed by GitHub
co-authored by Yashodhan Joshi
parent f816277c81
commit bc8aa46b4d
+1 -1
View File
@@ -471,7 +471,7 @@ pub fn config_routes() -> Router {
.route("/reload", get(status::config_reload))
.route("/redirect", get(status::redirect))
.route("/dex_login", get(status::dex_login))
.route("/dex_refresh", post(status::refresh_token_with_dex))
.route("/dex_refresh", get(status::refresh_token_with_dex))
.route("/token", post(users::service_accounts::exchange_token))
.layer(cors_layer())
}