[PR #5130] [MERGED] feat(common): authentication strategy improvements #5068

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5130
Author: @anwarulislam
Created: 6/6/2025
Status: Merged
Merged: 6/25/2025
Merged by: @jamesgeorge007

Base: nextHead: feat/auth-strategy-pattern


📝 Commits (5)

  • b81619a feat(common): implement comprehensive authentication strategies
  • 467a005 chore: clean up
  • 1c25517 chore: remove strategy pattern
  • b5a17de chore: remove unused auth params functions
  • 7c0cd7a chore: extend type checking list

📊 Changes

12 files changed (+569 additions, -373 deletions)

View changed files

packages/hoppscotch-common/src/helpers/auth/auth-types.ts (+92 -0)
📝 packages/hoppscotch-common/src/helpers/auth/index.ts (+2 -1)
packages/hoppscotch-common/src/helpers/auth/types/api-key.ts (+49 -0)
packages/hoppscotch-common/src/helpers/auth/types/aws-signature.ts (+91 -0)
packages/hoppscotch-common/src/helpers/auth/types/basic.ts (+37 -0)
packages/hoppscotch-common/src/helpers/auth/types/bearer.ts (+26 -0)
packages/hoppscotch-common/src/helpers/auth/types/digest.ts (+66 -0)
packages/hoppscotch-common/src/helpers/auth/types/hawk.ts (+55 -0)
packages/hoppscotch-common/src/helpers/auth/types/jwt.ts (+78 -0)
packages/hoppscotch-common/src/helpers/auth/types/oauth2.ts (+58 -0)
📝 packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts (+11 -371)
📝 packages/hoppscotch-common/type-check.mjs (+4 -1)

📄 Description

This pull request isolates the code for managing authentication methods in the Hoppscotch codebase to improve readability and maintainability. It includes implementations for various authentication types such as Basic, Bearer, API Key, AWS Signature, Digest, Hawk, JWT, and OAuth2. Additionally, it updates the utility functions to align with these changes.


🔄 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/5130 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 6/6/2025 **Status:** ✅ Merged **Merged:** 6/25/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `feat/auth-strategy-pattern` --- ### 📝 Commits (5) - [`b81619a`](https://github.com/hoppscotch/hoppscotch/commit/b81619a7a7617c6de7db5b81a57cb954ced29f16) feat(common): implement comprehensive authentication strategies - [`467a005`](https://github.com/hoppscotch/hoppscotch/commit/467a005c0a799b19b4b63b72302b2818bb1933bd) chore: clean up - [`1c25517`](https://github.com/hoppscotch/hoppscotch/commit/1c2551777984589473c0afa4d68c723ad1451017) chore: remove strategy pattern - [`b5a17de`](https://github.com/hoppscotch/hoppscotch/commit/b5a17de652b7bd931d3cf796cee0dfeea921e50d) chore: remove unused auth params functions - [`7c0cd7a`](https://github.com/hoppscotch/hoppscotch/commit/7c0cd7a0aa31adc22ea7df063ec9eeb458218e54) chore: extend type checking list ### 📊 Changes **12 files changed** (+569 additions, -373 deletions) <details> <summary>View changed files</summary> ➕ `packages/hoppscotch-common/src/helpers/auth/auth-types.ts` (+92 -0) 📝 `packages/hoppscotch-common/src/helpers/auth/index.ts` (+2 -1) ➕ `packages/hoppscotch-common/src/helpers/auth/types/api-key.ts` (+49 -0) ➕ `packages/hoppscotch-common/src/helpers/auth/types/aws-signature.ts` (+91 -0) ➕ `packages/hoppscotch-common/src/helpers/auth/types/basic.ts` (+37 -0) ➕ `packages/hoppscotch-common/src/helpers/auth/types/bearer.ts` (+26 -0) ➕ `packages/hoppscotch-common/src/helpers/auth/types/digest.ts` (+66 -0) ➕ `packages/hoppscotch-common/src/helpers/auth/types/hawk.ts` (+55 -0) ➕ `packages/hoppscotch-common/src/helpers/auth/types/jwt.ts` (+78 -0) ➕ `packages/hoppscotch-common/src/helpers/auth/types/oauth2.ts` (+58 -0) 📝 `packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts` (+11 -371) 📝 `packages/hoppscotch-common/type-check.mjs` (+4 -1) </details> ### 📄 Description This pull request isolates the code for managing authentication methods in the Hoppscotch codebase to improve readability and maintainability. It includes implementations for various authentication types such as Basic, Bearer, API Key, AWS Signature, Digest, Hawk, JWT, and OAuth2. Additionally, it updates the utility functions to align with these changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:33:01 +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#5068
No description provided.