mvantellingen / python-zeep

A Python SOAP client
http://docs.python-zeep.org
Other
1.88k stars 578 forks source link

authentication_header #1313

Open CandyDeck opened 2 years ago

CandyDeck commented 2 years ago

Hi I would like to know if it is possible to use such header in zeep.

base64string = base64.encodebytes(('%s:%s' % (username,password)).encode()).decode().strip()

authentication_header = {
    "WWW-Authenticate": "https://www.test.matrikkel.no",
    "Authorization": "Basic %s" % base64string
}

I have been looking around but did not find anything. If someone could help, this would be very appreciated ! Thanks