[PR #3885] [MERGED] feat: oauth revamp + support for multiple grant types in oauth #4570

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3885
Author: @amk-dev
Created: 3/9/2024
Status: Merged
Merged: 3/19/2024
Merged by: @AndrewBastin

Base: release/2024.3.0Head: feat/oauth-revamp


📝 Commits (10+)

  • f761e42 feat: oauth revamp with grant types
  • 41e582f fix: resolve type error
  • 2ed6d82 fix: prevent exceptions with OAuth 2.0 Auth Type under GQL
  • bc2c0e0 fix: ensure the fields for Basic & Bearer Auth Types are displayed
  • d749846 fix: ensure the access token is set for the tab where the request originated
  • 2b372e3 fix: account for values referred via request variables under OAuth 2.0 fields
  • 57c1161 chore: support OAuth 2.0 flow in the collection level authorization/headers modal
  • e743f8d chore: extend OAuth 2.0 flow support to GraphQL
  • a3deafa feat: add ability to specify access token via request headers/query params
  • fcde2ef fix: prevent schema validation errors

📊 Changes

44 files changed (+2728 additions, -363 deletions)

View changed files

📝 packages/hoppscotch-cli/src/__tests__/samples/collections/collection-level-headers-auth-coll.json (+6 -6)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/env-flag-tests-coll.json (+1 -1)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/fails-coll.json (+5 -11)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/malformed-coll.json (+4 -10)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/passes-coll.json (+4 -10)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/pre-req-script-env-var-persistence-coll.json (+1 -1)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/req-body-env-vars-coll.json (+1 -1)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-coll.json (+6 -6)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-persistence-coll.json (+6 -6)
📝 packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-persistence-scripting-coll.json (+1 -1)
📝 packages/hoppscotch-cli/src/options/test/env.ts (+9 -4)
📝 packages/hoppscotch-cli/src/utils/pre-request.ts (+21 -8)
📝 packages/hoppscotch-cli/src/utils/request.ts (+18 -12)
📝 packages/hoppscotch-common/locales/en.json (+20 -1)
📝 packages/hoppscotch-common/src/components.d.ts (+4 -2)
📝 packages/hoppscotch-common/src/components/collections/Properties.vue (+36 -9)
📝 packages/hoppscotch-common/src/components/collections/graphql/index.vue (+54 -1)
📝 packages/hoppscotch-common/src/components/collections/index.vue (+57 -7)
📝 packages/hoppscotch-common/src/components/graphql/Authorization.vue (+39 -12)
📝 packages/hoppscotch-common/src/components/graphql/Headers.vue (+8 -2)

...and 24 more files

📄 Description

This PR introduces support for the following oauth grant types.

  • Authorization Code
  • Authorization Code + PKCE
  • Client Credentials
  • Password
  • Implicit

🔄 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/3885 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 3/9/2024 **Status:** ✅ Merged **Merged:** 3/19/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2024.3.0` ← **Head:** `feat/oauth-revamp` --- ### 📝 Commits (10+) - [`f761e42`](https://github.com/hoppscotch/hoppscotch/commit/f761e42f6fd0244f1a54d7e99d87c1e885f278ce) feat: oauth revamp with grant types - [`41e582f`](https://github.com/hoppscotch/hoppscotch/commit/41e582f0fab50db085f0c49946e92f5781f44209) fix: resolve type error - [`2ed6d82`](https://github.com/hoppscotch/hoppscotch/commit/2ed6d825c73e2fe615b4684771ea90d81d492791) fix: prevent exceptions with OAuth 2.0 Auth Type under GQL - [`bc2c0e0`](https://github.com/hoppscotch/hoppscotch/commit/bc2c0e0af6c26854e540b4ec7e677e22e23d4720) fix: ensure the fields for Basic & Bearer Auth Types are displayed - [`d749846`](https://github.com/hoppscotch/hoppscotch/commit/d749846e89af7cc47359aaf69df1ec2b3d7a87e9) fix: ensure the access token is set for the tab where the request originated - [`2b372e3`](https://github.com/hoppscotch/hoppscotch/commit/2b372e3fa65ed40e20026a03c436c1b4770e42ff) fix: account for values referred via request variables under OAuth 2.0 fields - [`57c1161`](https://github.com/hoppscotch/hoppscotch/commit/57c1161532101f521a7ec9ea3e9634e198066898) chore: support OAuth 2.0 flow in the collection level authorization/headers modal - [`e743f8d`](https://github.com/hoppscotch/hoppscotch/commit/e743f8d27101134e7c2874d24d3d68d32c4005f7) chore: extend OAuth 2.0 flow support to GraphQL - [`a3deafa`](https://github.com/hoppscotch/hoppscotch/commit/a3deafacdc98c223df15a9631ba3ea4f76547c61) feat: add ability to specify access token via request headers/query params - [`fcde2ef`](https://github.com/hoppscotch/hoppscotch/commit/fcde2efe9d4a5e8d4d4eafe7b7d4aef0dd3c49be) fix: prevent schema validation errors ### 📊 Changes **44 files changed** (+2728 additions, -363 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/collection-level-headers-auth-coll.json` (+6 -6) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/env-flag-tests-coll.json` (+1 -1) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/fails-coll.json` (+5 -11) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/malformed-coll.json` (+4 -10) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/passes-coll.json` (+4 -10) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/pre-req-script-env-var-persistence-coll.json` (+1 -1) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/req-body-env-vars-coll.json` (+1 -1) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-coll.json` (+6 -6) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-persistence-coll.json` (+6 -6) 📝 `packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-persistence-scripting-coll.json` (+1 -1) 📝 `packages/hoppscotch-cli/src/options/test/env.ts` (+9 -4) 📝 `packages/hoppscotch-cli/src/utils/pre-request.ts` (+21 -8) 📝 `packages/hoppscotch-cli/src/utils/request.ts` (+18 -12) 📝 `packages/hoppscotch-common/locales/en.json` (+20 -1) 📝 `packages/hoppscotch-common/src/components.d.ts` (+4 -2) 📝 `packages/hoppscotch-common/src/components/collections/Properties.vue` (+36 -9) 📝 `packages/hoppscotch-common/src/components/collections/graphql/index.vue` (+54 -1) 📝 `packages/hoppscotch-common/src/components/collections/index.vue` (+57 -7) 📝 `packages/hoppscotch-common/src/components/graphql/Authorization.vue` (+39 -12) 📝 `packages/hoppscotch-common/src/components/graphql/Headers.vue` (+8 -2) _...and 24 more files_ </details> ### 📄 Description This PR introduces support for the following oauth grant types. * Authorization Code * Authorization Code + PKCE * Client Credentials * Password * Implicit --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:05:34 +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#4570
No description provided.