[GH-ISSUE #2113] env variables not working in Authorization Type OAuth 2.0 #709

Closed
opened 2026-03-16 16:49:27 +03:00 by kerem · 3 comments
Owner

Originally created by @dschmucki on GitHub (Feb 7, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2113

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I try to use env variables to configure the OAuth 2.0 authorization type, the variables will only be recognized for the field "Token".

See:
image

Steps to reproduce

  1. Set up a new environment
  2. Add variables
  3. Configure Authorization with type OAuth 2.0
  4. Use variables in all fields

Environment

Production

Version

Cloud

Originally created by @dschmucki on GitHub (Feb 7, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2113 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I try to use env variables to configure the OAuth 2.0 authorization type, the variables will only be recognized for the field "Token". See: ![image](https://user-images.githubusercontent.com/1675109/152766979-e7167db5-0792-48af-9ae4-f74b9f01f87f.png) ### Steps to reproduce 1. Set up a new environment 2. Add variables 3. Configure Authorization with type OAuth 2.0 4. Use variables in all fields ### Environment Production ### Version Cloud
kerem 2026-03-16 16:49:27 +03:00
Author
Owner

@liyasthomas commented on GitHub (Feb 7, 2022):

Seems like you have not chosen an environment. Please go to the environments section and click on "No environment" drop-down to choose the environment that contains the token variable.

Here's a screenshot:

Screenshot 2022-02-07 at 3 43 38 PM

Feel free to re-open the issue if issue persists.

<!-- gh-comment-id:1031295497 --> @liyasthomas commented on GitHub (Feb 7, 2022): Seems like you have not chosen an environment. Please go to the environments section and click on "No environment" drop-down to choose the environment that contains the `token` variable. Here's a screenshot: ![Screenshot 2022-02-07 at 3 43 38 PM](https://user-images.githubusercontent.com/10395817/152768369-d10e6e57-c215-4e9a-af92-110ca60731b4.png) Feel free to re-open the issue if issue persists.
Author
Owner

@dschmucki commented on GitHub (Feb 7, 2022):

Same with an active environment, please try using variables in all fields:

image

<!-- gh-comment-id:1031302181 --> @dschmucki commented on GitHub (Feb 7, 2022): Same with an active environment, please try using variables in all fields: ![image](https://user-images.githubusercontent.com/1675109/152769399-cacce3de-30eb-4c65-8131-0e952e6b8313.png)
Author
Owner

@MTIE2022 commented on GitHub (Mar 23, 2022):

Hi, what is the current status of this issue?

<!-- gh-comment-id:1076189130 --> @MTIE2022 commented on GitHub (Mar 23, 2022): Hi, what is the current status of this issue?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#709
No description provided.