[PR #5701] [MERGED] fix(common): resolve Postman API key authorization header import mapping #5317

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5701
Author: @AaronFortG
Created: 12/16/2025
Status: Merged
Merged: 12/19/2025
Merged by: @jamesgeorge007

Base: nextHead: fix/auth-method-import


📝 Commits (1)

  • 3169f42 fix: removed the default query value from the in parameter of the auth.apikey as it was empty

📊 Changes

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

View changed files

📝 packages/hoppscotch-common/src/helpers/import-export/import/postman.ts (+1 -1)

📄 Description

Closes #5688

Previously, when importing Postman collections with API key authentication, if the "in" field was missing or undefined in the auth configuration, the code would incorrectly default to passing the API key via query parameters (with ?? "query" fallback). As seen in the issue #5688, this caused the Authentication method to always be set as "QUERY_PARAMS" incorrectly.

What's changed

Now there is no default fallback for the API key authentication when importing Postman collections, which correctly maps the "HEADERS" configuration from the collection being imported. The "QUERY_PARAMS" behaviour keeps working as expected.


🔄 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/5701 **Author:** [@AaronFortG](https://github.com/AaronFortG) **Created:** 12/16/2025 **Status:** ✅ Merged **Merged:** 12/19/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `fix/auth-method-import` --- ### 📝 Commits (1) - [`3169f42`](https://github.com/hoppscotch/hoppscotch/commit/3169f42990b20f47ac0663d8da0cc62f7afacbcd) fix: removed the default query value from the in parameter of the auth.apikey as it was empty ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/postman.ts` (+1 -1) </details> ### 📄 Description Closes #5688 Previously, when importing Postman collections with API key authentication, if the `"in"` field was missing or undefined in the auth configuration, the code would incorrectly default to passing the API key via query parameters (with `?? "query"` fallback). As seen in the issue [#5688](https://github.com/hoppscotch/hoppscotch/issues/5688), this caused the Authentication method to always be set as `"QUERY_PARAMS"` incorrectly. ### What's changed Now there is no default fallback for the API key authentication when importing Postman collections, which correctly maps the `"HEADERS"` configuration from the collection being imported. The `"QUERY_PARAMS"` behaviour keeps working as expected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:46:37 +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#5317
No description provided.