thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.59k stars 128 forks source link

Oauth says "Saved Successfully" when it fails #1537

Open awstlaur opened 2 months ago

awstlaur commented 2 months ago

Describe the bug Generating an Oauth token gives the popup "Saved Successfully" with green text despite failing.

To Reproduce Under Auth -> Oauth2, send an oauth request with invalid credentials.

Screenshot 2024-05-07 at 7 49 56 AM

Observe the the success popup, but observe the following in the output:

OAuth2 Client Credentials Request: https://redacted.domain/oauth2/token
Request Method: POST
Request Headers:
{
  "Content-Type": "application/x-www-form-urlencoded"
}
Request Body:
grant_type=client_credentials&client_id=invalid_client_id&client_secret=invalid_client_secret

OAuth Response:
{
  "error_description": "Authorization failed. Invalid credentials",
  "error": "invalid_client"
}

Expected behavior I expect a failure popup

Platform:

Are you using the free version/paid version/trial: Free