restish
restish copied to clipboard
Add TLS Config before Auth
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