[PR #3413] [CLOSED] feat: add client credentials #4375

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3413
Author: @sgtremblay
Created: 10/2/2023
Status: Closed

Base: release/2024.3.0Head: main


📝 Commits (2)

📊 Changes

10 files changed (+170 additions, -88 deletions)

View changed files

📝 docker-compose.yml (+0 -65)
📝 packages/hoppscotch-common/assets/scss/themes.scss (+4 -4)
📝 packages/hoppscotch-common/locales/en.json (+4 -1)
📝 packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue (+56 -2)
📝 packages/hoppscotch-common/src/components/smart/EnvInput.vue (+4 -4)
📝 packages/hoppscotch-common/src/helpers/oauth.js (+48 -3)
📝 packages/hoppscotch-common/src/helpers/terndoc/pw-pre.json (+4 -0)
📝 packages/hoppscotch-common/src/index.ts (+0 -9)
📝 packages/hoppscotch-data/src/rest/HoppRESTAuth.ts (+2 -0)
📝 packages/hoppscotch-js-sandbox/src/preRequest.ts (+48 -0)

📄 Description

Closes https://github.com/hoppscotch/hoppscotch/issues/874 partially, supercedes https://github.com/hoppscotch/hoppscotch/pull/2209 and https://github.com/hoppscotch/hoppscotch/pull/3298

Description
This PR fixes and update this PR https://github.com/hoppscotch/hoppscotch/pull/3298 with updated main.
Adds the option to use the OAuth 2.0 Client Credentials flow.
Adds the option to send Oauth 2.0 Client Credentials in POST body or in Authorization Header.

image

  • Nicer UI
  • Show 'Place client credentials in' option only if 'client credentials' is checked
  • Update docs
  • Update tests

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 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/3413 **Author:** [@sgtremblay](https://github.com/sgtremblay) **Created:** 10/2/2023 **Status:** ❌ Closed **Base:** `release/2024.3.0` ← **Head:** `main` --- ### 📝 Commits (2) - [`1f4282d`](https://github.com/hoppscotch/hoppscotch/commit/1f4282d72071fb9ad4312ff9c633c6baec7c27fc) feat: add client credentials - [`4288071`](https://github.com/hoppscotch/hoppscotch/commit/4288071bd1437b7d598344988810afec842f5e09) WIP ### 📊 Changes **10 files changed** (+170 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `docker-compose.yml` (+0 -65) 📝 `packages/hoppscotch-common/assets/scss/themes.scss` (+4 -4) 📝 `packages/hoppscotch-common/locales/en.json` (+4 -1) 📝 `packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue` (+56 -2) 📝 `packages/hoppscotch-common/src/components/smart/EnvInput.vue` (+4 -4) 📝 `packages/hoppscotch-common/src/helpers/oauth.js` (+48 -3) 📝 `packages/hoppscotch-common/src/helpers/terndoc/pw-pre.json` (+4 -0) 📝 `packages/hoppscotch-common/src/index.ts` (+0 -9) 📝 `packages/hoppscotch-data/src/rest/HoppRESTAuth.ts` (+2 -0) 📝 `packages/hoppscotch-js-sandbox/src/preRequest.ts` (+48 -0) </details> ### 📄 Description Closes https://github.com/hoppscotch/hoppscotch/issues/874 partially, supercedes https://github.com/hoppscotch/hoppscotch/pull/2209 and https://github.com/hoppscotch/hoppscotch/pull/3298 Description This PR fixes and update this PR https://github.com/hoppscotch/hoppscotch/pull/3298 with updated main. Adds the option to use the OAuth 2.0 Client Credentials flow. Adds the option to send Oauth 2.0 Client Credentials in POST body or in Authorization Header. ![image](https://github.com/hoppscotch/hoppscotch/assets/82985065/fbbf5ce3-4d43-44f8-9d33-1037859cca01) * [ ] Nicer UI * [ ] Show 'Place client credentials in' option only if 'client credentials' is checked * [ ] Update docs * [ ] Update tests ### Checks * [x] My pull request adheres to the code style of this project * [ ] My code requires changes to the documentation * [ ] I have updated the documentation as required * [ ] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:54:55 +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#4375
No description provided.