Closed josemazo closed 7 years ago
Hi!
the boolean to string conversion was because of this issue but yes, I think that's not the right place to do it since it's breaking the boolean support in requests
Let me see how to fix that without breaking anything. You can assume the boolean conversion
will not exist in case you want to provide the PRs (will be very appreciated BTW ;) )
Thanks!
Currently preparing a PR for this
Awesome, we'll check it and prepare the code for inserting the verify
parameter in another PR(s).
Thanks but it's not necessary, everything comes in #60
Do you mind reviewing?
BTW I found a workaround, it's not necessary to wait for the next release, just pass a proper session instance to the auth client:
import requests
session = requests.Session()
session.verify = False
APIKeyAuthClient(the_url, the_api_key, session=session)
Hope it helps!
Hi!
We are having some problems with this library in OnPremise CARTO instances with invalid certificates and without the chance of use
http
, onlyhttps
.For fixing this, the
APIKeyAuthClient
class should have averify
(or something like that) attribute that refers to theverify
parameter inrequests
. We'll need to propagate this change toBasicAuthClient
, also for setting the using of theverify
parameter in thesend
method.We can do that couple of PRs, but we need to now why you convert every boolean to a string here, because the
verify
parameter needs to be a boolean.Regards.