Switch from random generated tokens to JWT tokens #489
Labels
Backend 🏭
Stuff related to Backend part.
Enhancement 🌪
Things that improve our project.
P1
Things with #1 Priority
Current Behavior
Currently we are using
itsdangerous
implementation for generating tokens here:https://github.com/jpowie01/MedTagger/blob/master/backend/medtagger/api/security.py#L61
Expected Behavior
We should move to JWT tokens with ability to revoke user tokens in separated table with blacklisted tokens:
https://realpython.com/token-based-authentication-with-flask/
This will increase MedTagger's security a little bit as now tokens that were generated for users may be used even if they log out from application.
The text was updated successfully, but these errors were encountered: