mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4169] [feature]: Generated Authorization token in Collection Properties aware of environment change (or automatic regeneration of token for configured Authorization part) #1505
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#1505
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 @kamilzki on GitHub (Jul 4, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4169
Is there an existing issue for this?
Summary
Hi!
I followed the steps from https://docs.hoppscotch.io/documentation/features/authorization#oauth-2-0 to set the Collection Properties Authorization part for all requests. I'm not sure if there is any better way so I'm posting here the idea.
While changing frequently environments, the generated token is not changing accordingly. It would be nice to have it environment-aware or have some configuration that tries to regenerate the token whenever Unauthorized is returned for any request (that might be even more helpful in the case of short-lived tokens).
Why should this be worked on?
Whenever I change the environment, I need to go to Collections Properties, hit "Generate Token" button to generate a specific one for the active environment, and save it.