mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5926] [bug]: authorization inherit doesn't work #2328
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#2328
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 @ashaffah on GitHub (Mar 3, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5926
Originally assigned to: @nivedin on GitHub.
Is there an existing issue for this?
Platform
Desktop App
Browser
Chrome
Operating System
macOS
Bug Description
What happened ?
When I tried changing the authorization type to “inherit” and saved it, then tested several API endpoints with authorization, the response was ‘Unauthorized’ because the setting reverted to “none” and the cookie was not set.
Screen record
https://github.com/user-attachments/assets/f47e3374-e5bb-4bfe-988e-4aaa6a1fb9bc
Deployment Type
Hoppscotch Cloud
Version
No response
@nivedin commented on GitHub (Mar 5, 2026):
@ashaffah can you try clearing the cache and try again with latest version of Hoppscotch app.
@ashaffah commented on GitHub (Mar 5, 2026):
@nivedin i use desktop latest version not a browser
@nivedin commented on GitHub (Mar 5, 2026):
@ashaffah Could you close all the tabs, reopen them, and check if the issue still persists? also is this issue reproducible with personal workspace ?
@ashaffah commented on GitHub (Mar 5, 2026):
@nivedin i was already do it from yesterday (team workspace) and this issue still persist today also affect to personal workspace
https://github.com/user-attachments/assets/22a1bc06-2688-48e7-a448-5471e499234e
@nivedin commented on GitHub (Mar 5, 2026):
Thank you for the detailed explanation, can you check if there is a collection level auth set for
authfolder@ashaffah commented on GitHub (Mar 5, 2026):
As I mentioned in the first issue, the same problem persists.
https://github.com/user-attachments/assets/4dcf8968-fb43-41e1-9570-69c543e27e3a
@nivedin commented on GitHub (Mar 5, 2026):
ERP Rebornis a root collection, so it cannot inherit authorization since it does not have a parent folder to inherit from. Yes, this is a UI bug, there should not be an “Inherit” option for a root collection, which is why it resets to “None” on save. We will patch this soon.Can you confirm if this is the issue you are referring to?
Or is the issue that the
Loginrequest from theAuthfolder is inheriting authorization correctly, while theGet Allrequest from theTaxfolder is not inheriting it?@ashaffah commented on GitHub (Mar 5, 2026):
I appreciate your response thank you🙏.
Yes you're right, as you mentioned when i Get All request from the Tax folder is not inheriting it from Auth
My expectation looks like this :
https://github.com/user-attachments/assets/9a9b1765-c111-4ff9-ac23-a8bf0fd2168e
@nivedin commented on GitHub (Mar 5, 2026):
@ashaffah Thank you for the detailed explanation. From the description and details you’ve provided, it looks more like a cookie issue, not an authorization inheritance issue. The collection is not inheriting auth, but the
Get Allrequest is trying to fetch the cookie set from theLoginrequest. In Hoppscotch, you have to manually set the cookie before calling theGet Allrequest.We have a PR open for automating this which will fix the issue.
You can check out the cookie doc for more details.
Let me know if this resolves your issue.