mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5939] [bug]: Authorization inheritance broken for requests inside subfolders #2333
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#2333
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?
Originally created by @Laeborg on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5939
Originally assigned to: @VishwaVikas2006 on GitHub.
Is there an existing issue for this?
Platform
Web App
Browser
Firefox
Operating System
Linux
Bug Description
What happened
OAuth 2.0 authorization inheritance does not work for requests placed inside subfolders. Requests at the top-level of a collection correctly inherit authorization set on the parent folder, but requests inside any subfolder fail to inherit authorization — regardless of whether the authorization is set on the top-level folder or on the subfolder itself.
Authorization inheritance only works one level deep. Requests in subfolders do not receive the inherited token, making it impossible to use inherited OAuth 2.0 auth in nested folder structures.
What I expected is
Requests inside subfolders should inherit OAuth 2.0 authorization from their parent folder or the root collection, consistent with how inheritance works for top-level requests.
Steps to reproduce
Additional context
Deployment Type
Self-hosted (on-prem deployment)
Version
2026.2.0
@VishwaVikas2006 commented on GitHub (Mar 12, 2026):
Hi! I noticed this issue is currently assigned to @nivedin.
If it's still open for contributions, I'd be happy to help investigate or work on a fix. I can try reproducing the issue locally and share findings.
@VishwaVikas2006 commented on GitHub (Mar 12, 2026):
I tested this locally and was able to reproduce the issue.
Requests inside a subfolder do not inherit OAuth authorization, while requests one level deep do inherit it correctly.
I'll start looking into the inheritance logic to identify where the folder hierarchy traversal stops.
@nivedin commented on GitHub (Mar 12, 2026):
Assigning it to you @VishwaVikas2006
@VishwaVikas2006 commented on GitHub (Mar 12, 2026):
I tested this locally on the latest
mainbranch.Setup:
Collection
└── Folder
└── Request
Result:
The request correctly inherits OAuth 2.0 authorization from the parent collection even when placed inside a subfolder.
I was unable to reproduce the issue in this configuration. Could you confirm if there are additional conditions required to trigger it (e.g., deeper nesting levels, specific OAuth grant types, or token generation flow)?
I'll also start looking through the inheritance logic to see how the folder traversal is implemented.
@Laeborg commented on GitHub (Mar 16, 2026):
In this example inherits won't work, no matter if the OAuth 2.0 are set on "api-core" or "tenants" folders. If I set the authorization on "api-core" and move the request to the "api-core" instead for "tenants" then it works. If I set authorization directly on the request and then change it to "inherit" afterwards it seems to save the old authorization in the background, which can make it seems like it is working.
I'm on 2026.2.1.