eclecticiq / OpenTAXII

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

Fix decoding string token #183

Closed AlyaGomaa closed 3 years ago

AlyaGomaa commented 3 years ago

the server throws unauthorized error every time a valid user tries to access it, it's trying to decode the token (treating it as bytes instead of str) which is not the case here

erwin-eiq commented 3 years ago

This was fixed by merging #184 (which also fixed the missing and mandatory algorithms arg in jwt.decode, hence I merged that one instead).

Thanks for the contribution @AlyaGomaa