digium / PySwitchvox

A python library for interacting with the Switchvox Extend API
Other
4 stars 2 forks source link

Added authentication method check #1

Closed voice1 closed 6 years ago

voice1 commented 6 years ago

Switchvox 6.6.0.x removed HTTPDigestAuth without documenting the change.
This brakes existing integrations, and renders this library unusable on new installations.

This patch performs a HTTPDigestAuth check using an empty payload, if it receives a 401 error, it returns HTTPBasicAuth method to be used instead.