[PR #423] [MERGED] feat: Extract authentication when using the cURL importer #2959

Closed
opened 2026-06-08 22:00:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/423
Author: @jeroenvandermerwe
Created: 3/11/2026
Status: Merged
Merged: 5/21/2026
Merged by: @gschier

Base: mainHead: curl-authentication-header-extraction


📝 Commits (5)

  • 3c30f68 Implement authentication extraction from headers when using the cURL importer
  • fbc9630 Add tests for authorization header handling in cURL importer
  • 46e76f5 Merge remote-tracking branch 'origin/main' into pr-423-curl-auth-extraction
  • e7f8565 Refine cURL authorization header parsing
  • 12f8031 Merge branch 'main' into curl-authentication-header-extraction

📊 Changes

2 files changed (+229 additions, -6 deletions)

View changed files

📝 plugins/importer-curl/src/index.ts (+93 -6)
📝 plugins/importer-curl/tests/index.test.ts (+136 -0)

📄 Description

When importing a curl command, Authorization: Bearer <token> and Authorization: Basic <base64> headers are now extracted into the Authentication tab instead of being left in the Headers list.

  • Bearer tokens → Bearer authentication type (RFC 6750)
  • Basic auth → Basic authentication type with decoded username/password (RFC 7617)
  • Header-based authentication takes precedence over -u/--user flags
  • Non-standard schemes remain in Headers as before

🔄 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/mountain-loop/yaak/pull/423 **Author:** [@jeroenvandermerwe](https://github.com/jeroenvandermerwe) **Created:** 3/11/2026 **Status:** ✅ Merged **Merged:** 5/21/2026 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `main` ← **Head:** `curl-authentication-header-extraction` --- ### 📝 Commits (5) - [`3c30f68`](https://github.com/mountain-loop/yaak/commit/3c30f68c5505d074692dafc955deceedd5249af4) Implement authentication extraction from headers when using the cURL importer - [`fbc9630`](https://github.com/mountain-loop/yaak/commit/fbc9630f067a11ccec923da9c3757e2b5559ba37) Add tests for authorization header handling in cURL importer - [`46e76f5`](https://github.com/mountain-loop/yaak/commit/46e76f585660eb28113f262c53e8f3e0941d5ad8) Merge remote-tracking branch 'origin/main' into pr-423-curl-auth-extraction - [`e7f8565`](https://github.com/mountain-loop/yaak/commit/e7f85658b0e038d0468c151b3600ee730300bdfa) Refine cURL authorization header parsing - [`12f8031`](https://github.com/mountain-loop/yaak/commit/12f80318d5ef0af008db6741366fc8b98dfe00f7) Merge branch 'main' into curl-authentication-header-extraction ### 📊 Changes **2 files changed** (+229 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `plugins/importer-curl/src/index.ts` (+93 -6) 📝 `plugins/importer-curl/tests/index.test.ts` (+136 -0) </details> ### 📄 Description When importing a curl command, `Authorization: Bearer <token>` and `Authorization: Basic <base64>` headers are now extracted into the Authentication tab instead of being left in the Headers list. - Bearer tokens → Bearer authentication type (RFC 6750) - Basic auth → Basic authentication type with decoded username/password (RFC 7617) - Header-based authentication takes precedence over `-u/--user` flags - Non-standard schemes remain in Headers as before --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-08 22:00:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/yaak#2959