[PR #4821] [MERGED] fix: support for apikey auth for native interceptors #4948

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4821
Author: @CuriousCorrelation
Created: 3/5/2025
Status: Merged
Merged: 3/5/2025
Merged by: @jamesgeorge007

Base: patchHead: feat/api-key-support


📝 Commits (1)

  • 7f452a2 fix(desktop): support for apikey auth

📊 Changes

12 files changed (+404 additions, -11 deletions)

View changed files

📝 packages/hoppscotch-agent/src-tauri/Cargo.lock (+2 -1)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.lock (+295 -0)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.toml (+1 -0)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/src/auth.rs (+24 -1)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/src/interop.rs (+14 -0)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/src/request.rs (+47 -1)
📝 packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock (+2 -1)
📝 packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.d.ts (+5 -0)
📝 packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.d.ts.map (+1 -1)
📝 packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/guest-js/index.ts (+6 -0)
📝 packages/hoppscotch-desktop/src-tauri/Cargo.lock (+3 -2)
📝 pnpm-lock.yaml (+4 -4)

📄 Description

This PR fixes apiKey support regression in native and agent interceptor. Closes #4819

Note to reviewers

Much of the handling is done at the application level in EffectiveURL.ts so simply enabling ser/de on relay side works. Have added a comment around handling future auth at kernel level in HFE-740.


🔄 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/4821 **Author:** [@CuriousCorrelation](https://github.com/CuriousCorrelation) **Created:** 3/5/2025 **Status:** ✅ Merged **Merged:** 3/5/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `feat/api-key-support` --- ### 📝 Commits (1) - [`7f452a2`](https://github.com/hoppscotch/hoppscotch/commit/7f452a22d2123000da5ea90b575d7ca89ad5c18d) fix(desktop): support for `apikey` auth ### 📊 Changes **12 files changed** (+404 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-agent/src-tauri/Cargo.lock` (+2 -1) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.lock` (+295 -0) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.toml` (+1 -0) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/src/auth.rs` (+24 -1) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/src/interop.rs` (+14 -0) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/src/request.rs` (+47 -1) 📝 `packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock` (+2 -1) 📝 `packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.d.ts` (+5 -0) 📝 `packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.d.ts.map` (+1 -1) 📝 `packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/guest-js/index.ts` (+6 -0) 📝 `packages/hoppscotch-desktop/src-tauri/Cargo.lock` (+3 -2) 📝 `pnpm-lock.yaml` (+4 -4) </details> ### 📄 Description This PR fixes `apiKey` support regression in `native` and `agent` interceptor. Closes #4819 #### Note to reviewers Much of the handling is done at the application level in `EffectiveURL.ts` so simply enabling ser/de on relay side works. Have added a comment around handling future auth at kernel level in HFE-740. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:26: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#4948
No description provided.