mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3852] [MERGED] fix: collection level authorization inheritance issue #4560
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#4560
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/3852
Author: @anwarulislam
Created: 2/22/2024
Status: ✅ Merged
Merged: 2/23/2024
Merged by: @AndrewBastin
Base:
release/2024.3.0← Head:fix/collection-level-authorization📝 Commits (5)
603bceffix: collection level authorization issue6cd37f9fix: test file9d214dcfix: graphql default auth type set to inherit59456fechore: root collection auth enabled37c1328chore: authType none for root collection📊 Changes
8 files changed (+48 additions, -48 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/collections/index.vue(+2 -2)📝
packages/hoppscotch-common/src/components/graphql/Authorization.vue(+10 -10)📝
packages/hoppscotch-common/src/components/http/Authorization.vue(+10 -10)📝
packages/hoppscotch-common/src/helpers/curl/__tests__/curlparser.spec.js(+22 -22)📝
packages/hoppscotch-common/src/helpers/graphql/default.ts(+1 -1)📝
packages/hoppscotch-common/src/helpers/rest/default.ts(+1 -1)📝
packages/hoppscotch-data/src/graphql/index.ts(+1 -1)📝
packages/hoppscotch-data/src/rest/index.ts(+1 -1)📄 Description
Closes HFE-422 #3713
Description
This pull request resolves the issue of collection-level authorization inheritance in its requests. Currently, when we create a request in a collection that is supposed to inherit the auth from collection properties, we have to manually choose an auth-type called "inherit" to inherit authorization from the collection.
Although it works when we select the option manually, it should by default inherit the auth options from the collection and prioritize request auth over collection auth without creating or selecting any auth-type called "inherit". This PR addresses the issue and changes the flow to achieve this.
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.