-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi,
I was wondering whether ZeepLibrary already supports WSSE security with UsernameToken or not? I wasn't able to use it until I made a small change to the code.
But since I am not an expert in python or in zeep, I don't know whether the change will break anything else. I have no way in verifying whether the HTTPBasicAuth you have implemented works. I also took a look at the tests you have, but couldn't execute the authentication test.
This is the change I made:
zeeplibrary.py row 245:
client = zeep.Client(wsdl, transport=transport)
to
client = zeep.Client(wsdl, wsse=UsernameToken(auth[0], auth[1]), transport=transport)
This change is based on this: https://python-zeep.readthedocs.io/en/master/wsse.html
If you are happy with this, I can provide a pull request.