restish icon indicating copy to clipboard operation
restish copied to clipboard

Add TLS Config before Auth

Open MartyHub opened this issue 3 years ago • 0 comments

Hello,

I'm trying to use Restish with a corporate API that requires OAuth 2.0 Client Credentials authentication. The authentication /token endpoint also requires a client certificate. With the current version of Restish, I've the following error message:

ERROR: Caught error: oauth2: cannot fetch token: 400 Bad Request
Response: <html>
<head><title>400 No required SSL certificate was sent</title></head>
...
</html>

With this proposed patch, it is working fine. Can you please have a look and tell me if it can be merged?

Thanks and Regards

MartyHub avatar Aug 20 '22 12:08 MartyHub