mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5253] [MERGED] feat(common): add advanced configuration for auth and token request parameters #5127
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5253
Author: @anwarulislam
Created: 7/16/2025
Status: ✅ Merged
Merged: 7/28/2025
Merged by: @jamesgeorge007
Base:
next← Head:feat/oauth2-audience-field📝 Commits (10+)
1b384bffeat: add advanced configuration for auth and token request parameters12a879cfeat: implement advanced OAuth2 configuration with dynamic request parametersd5e520cfeat: enhance OAuth2 advanced options with improved UI and parameter handlingbb2c063feat: add advanced OAuth2 components for enhanced parameter handling6351c11feat: add showDescription prop to HttpKeyValue component and remove OAuth2KeyValue componentf19993bfeat: enhance UI for auth request parameters with column headers and improved layout2e8137bfeat: implement advanced OAuth2 parameters handling50a0faefeat: add support for OAuth2 advanced parameters and update versioning to 158ff28a4feat: add advanced configuration for OAuth2 auth request parameters management1033961feat: add autoCompleteEnv prop to KeyValue📊 Changes
24 files changed (+1426 additions, -113 deletions)
View changed files
📝
packages/hoppscotch-cli/src/__tests__/unit/fixtures/workspace-access.mock.ts(+13 -13)📝
packages/hoppscotch-cli/src/utils/workspace-access.ts(+70 -17)📝
packages/hoppscotch-common/locales/en.json(+5 -1)📝
packages/hoppscotch-common/src/components.d.ts(+3 -1)📝
packages/hoppscotch-common/src/components/http/KeyValue.vue(+32 -16)📝
packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue(+701 -3)📝
packages/hoppscotch-common/src/helpers/auth/index.ts(+4 -0)📝
packages/hoppscotch-common/src/helpers/graphql/connection.ts(+1 -1)📝
packages/hoppscotch-common/src/helpers/kernel/__tests__/kernel.spec.ts(+7 -7)➕
packages/hoppscotch-common/src/helpers/oauth2Params.ts(+59 -0)📝
packages/hoppscotch-common/src/services/oauth/flows/authCode.ts(+71 -10)📝
packages/hoppscotch-common/src/services/persistence/__tests__/__mocks__/index.ts(+5 -5)📝
packages/hoppscotch-data/src/collection/index.ts(+4 -2)➕
packages/hoppscotch-data/src/collection/v/9.ts(+92 -0)📝
packages/hoppscotch-data/src/graphql/index.ts(+5 -3)➕
packages/hoppscotch-data/src/graphql/v/9.ts(+94 -0)📝
packages/hoppscotch-data/src/rest-request-response/original-request/index.ts(+4 -2)➕
packages/hoppscotch-data/src/rest-request-response/original-request/v/6.ts(+65 -0)📝
packages/hoppscotch-data/src/rest/index.ts(+14 -14)➕
packages/hoppscotch-data/src/rest/v/15/auth.ts(+90 -0)...and 4 more files
📄 Description
Closes FE-903 #3387
What's changed
Allows users to add custom key-value pairs, such as
audience,grant_type, and others, to OAuth2 request inputs to support various providers like Auth0.Test request
https://hopp.sh/r/sptx3b7lwvqm
Test Collection
oauth2-audience.json
Note to reviewer
authRequestParams,tokenRequestParams, andrefreshRequestParamsonly work with theAuthorization CodegrantType. But the code is set up to easily add support for the other three grant types. We’ll roll those out in the next patch release. I wanted to keep this PR focused on just one grant type so we can get it into this release.audienceto test it out. It'll fail if the audience is off. The right audience to authorize ishttps://api.example.com.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.