Does anyone have a working example of using httplib2 for WSSE authentication? I've looked around for one but can't find anything.
Asked
Active
Viewed 326 times
1 Answers
0
It is very easy:
http = httplib2.Http()
http.add_credentials("myusername", "mypassword")
-
This is for basic HTTP authentication, not WSSE. – steveYeah Mar 23 '15 at 10:02
-
It works for both Basic Auth and WSSE (provided as an HTTP header, not provided in the SOAP envelope). I have an example of both server and client at http://runnable.com/VRCVAcJ7c7QaEvu5/itty-server-authenticates-via-wsse-for-python-and-authentication – pearmaster Mar 23 '15 at 22:36