mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3713] [bug]: Authorization on Collection level does not work #1285
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#1285
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 @PhilippPHoffmann on GitHub (Jan 3, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3713
Originally assigned to: @anwarulislam on GitHub.
Is there an existing issue for this?
Current behavior
When I move the Authorization settings from Request level to the Collection level, I see the following error message when I click

Generate Token:What I expect is that the token is successfully generated and populated in the corresponding field in the dialog and subsequent Requests in this Collection.
Steps to reproduce
OpenID Connect Discovery URL,Authorization URL, ' Access Token URLandClient ID`Client SecretandScopeGenerate TokenAuth Server returned an error statePlease note that this error does not occur, when you enter any value in the
Scopefield and then remove it before clicking onGenerate Token.Therefore I suspect that this field or the corresponding variable is not properly initialized or passed to the URL.
Without this workaround, I can see
scope=undefinedin the resulting request. Using the workaround, this turns intoscope=, which is what I expected because this is also used in the Request level Authorization.Unfortunately the workaround does not completely fix Collection level Authorization.

When I click on
Generate Tokenafter using the workaround, I see a different error:I do not need to specify a
Client Secreton the Request level Authorization and the workaround for theScopedoes not work for theClient Secret.Environment
Production
Version
Self-hosted
@anwarulislam commented on GitHub (Mar 5, 2025):
@PhilippPHoffmann, do you still experience this issue? It was supposed to be resolved.
@PhilippPHoffmann commented on GitHub (Mar 5, 2025):
I can't reproduce this issue anymore.