Functionality "Refresh Token" in tab "OAuth 2" does not get authentication token
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Expected Behavior
The authentication token should be generated normally, as it was generated in versions prior to version 2021.5.3 regardless of the application environment.
### Actual Behavior
Since version `2021.5.3` I cannot use the **Refresh Token** functionality in a local environment because whenever I click on the **Refresh Token** button I get the error `Failed to fetch token url=https://localhost:5001/connect/token status=0 no description provided`. However, if I point it to any environment other than `localhost`, the functionality presents no problem.
This functionality, until version `2021.5.3`, works without any problems, but since then I can no longer use it with the new versions. Also, when I click on **Response Timeline**, no information is shown on the screen. See the images below:
[https://prnt.sc/wMfyHsCQpS88](https://prnt.sc/wMfyHsCQpS88)
[https://prnt.sc/Xu9dRoy_qmRi](https://prnt.sc/Xu9dRoy_qmRi)
[https://prnt.sc/gyOAUv8ZIiLP](https://prnt.sc/gyOAUv8ZIiLP)
### Reproduction Steps
1. In the **OAuth 2** tab , enter the necessary data of `grant type`, `access token url`, `client id` and `client secret`;
2. Click on the **Refresh Token** button.
### Is there an existing issue for this?
- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### Additional Information
_No response_
### Insomnia Version
2022.7.5
### What operating system are you using?
Windows
### Operating System Version
Windows 10
### Installation method
Download from Insomnia
### Last Known Working Insomnia version
2021.5.3
Contributor guide
Research direction
Start by reproducing the failure from the OAuth 2 tab with a token URL on localhost, then compare the Refresh Token behavior with a non-local environment. Done means the token is generated successfully on localhost and Response Timeline displays the resulting information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100