feedback
feedback copied to clipboard
[Bug]: "Unable to verify the first certificate" when refreshing OAuth2 access token
What happened?
When setting up OAuth 2 authentication to an API with a self signed certificate it fails in a similar way to #88 .
Steps to reproduce?
Go to settings and disable the Rapidapi > ssl: Verification option. In a fresh request go to Auth -> OAuth 2 and set "Access Token URL" to "https://self-signed.badssl.com/token" and press the "Get Access Token" button. Then look at the output.
Actual output:
["ERROR" - 2023-07-13T07:59:12.488Z - v1.10.2]
resourceOwnerPasswordCredentials: request to https://self-signed.badssl.com/token failed, reason: certificate has expired
Expected output (for this perticular token url):
["ERROR" - 2023-07-13T08:01:45.646Z - v1.10.2]
resourceOwnerPasswordCredentials: Not Allowed (405)
VS Code version
1.80.0
Extension version
1.10.2
Relevant log output
["ERROR" - 2023-07-13T07:59:12.488Z - v1.10.2]
resourceOwnerPasswordCredentials: request to https://good.badssl.com/token failed, reason: certificate has expired
["INFO" - 2023-07-13T07:59:57.919Z - v1.10.2]
Skipping SSL verification