miguelgrinberg / Flask-HTTPAuth

Simple extension that provides Basic, Digest and Token HTTP authentication for Flask routes
MIT License
1.27k stars 228 forks source link

Token Auth Example won't run with with itsdangerous > 2.0 #157

Closed pmaresca closed 1 year ago

pmaresca commented 1 year ago

Hey there, was just trying to run the token_auth.py example and it doesn't seem like the imports succeed with the latest version of itsdangerous. I seem to have 2.1.2 installed in my venv and it looks like they deprecated the serializer utilized in 2. https://itsdangerous.palletsprojects.com/en/2.0.x/jws/#itsdangerous.jws.JSONWebSignatureSerializer Just thought you'd wanna know for future people trying to run your example.

miguelgrinberg commented 1 year ago

Thanks, yes, I should update that example to use pyjwt.