[PR #3844] [MERGED] fix: use x-www-form-urlencoded for token exchange requests in oauth #4546

Closed
opened 2026-03-17 02:04:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3844
Author: @amk-dev
Created: 2/19/2024
Status: Merged
Merged: 2/21/2024
Merged by: @AndrewBastin

Base: mainHead: fix/oauth-token-exchange-contenttype


📝 Commits (1)

  • 271e794 fix: use x-www-form-urlencoded for token exchange requests

📊 Changes

1 file changed (+13 additions, -9 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/oauth.ts (+13 -9)

📄 Description

Before

In the last oauth update, we used application/json as content type for token exchange requests in auth code flow. but most oauth token exchange endpoints works with application/x-www-form-urlencoded content type.

After

use application/x-www-form-urlencoded content type for token exchange requests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3844 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 2/19/2024 **Status:** ✅ Merged **Merged:** 2/21/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `fix/oauth-token-exchange-contenttype` --- ### 📝 Commits (1) - [`271e794`](https://github.com/hoppscotch/hoppscotch/commit/271e794d170662e081b4d7e6f7e6517ab5e31c7b) fix: use x-www-form-urlencoded for token exchange requests ### 📊 Changes **1 file changed** (+13 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/oauth.ts` (+13 -9) </details> ### 📄 Description **Before** In the last oauth update, we used `application/json` as content type for token exchange requests in auth code flow. but most oauth token exchange endpoints works with `application/x-www-form-urlencoded` content type. **After** use `application/x-www-form-urlencoded` content type for token exchange requests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:04:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4546
No description provided.