eclecticiq / OpenTAXII

TAXII server implementation in Python from EclecticIQ
BSD 3-Clause "New" or "Revised" License
193 stars 92 forks source link

Make sure werkzeug <2.1 and >=2.1 work correctly with auth #224

Closed erwin-eiq closed 2 years ago

erwin-eiq commented 2 years ago

Werkzeug 2.1 broke our auth system. It now throws an exception instead of returning None when being passed non-json when calling .to_json. We depended on the previous behaviour.

This PR adds werkzeug<2.1 and >=2.1 to the tox matrix to ensure we support both cases and fixes the code.