Descriptionclient/Client: Add API for non-validating SSL
This is the final goose step for supporting self-signed certificates
for the Openstack Provider (bug #1202163). It adds an API (like was
done for the http.Client object) named
goose/client.NewNonValidatingClient. It then changes around the code a
bit so that we grab the HTTP connection early, and then use it in
sendRequest.
We also had to change the Authenticators so that we can pass in the
http.Client object. Legacy was the only one that used a raw
net/http.Client and it should be pretty straightforward how it was
changed. Also, to pass in the Client object, I added a new function
identity.NewAuthenticator(AuthMode, http.Client). This lets us set
private attributes, and allows us to not have external switch
statements about how to treat the various auth modes.
https://code.launchpad.net/~jameinel/goose/ssl-hostname-verify-false-1202163/+merge/183847
Requires: https://code.launchpad.net/~jameinel/goose/httpclient-ssl/+merge/183844
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 2
|