-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue #363 #488
base: master
Are you sure you want to change the base?
Fixed issue #363 #488
Conversation
Upon refreshing the token a new Outstanding token is created in the serializers.py where the user from the blacklisted token is added to the new refresh token. This insures that there is always an Outstanding token for each refresh token in use. Therefore, this will solve the issue of logging out from all devices by blacklisting all the Outstanding tokens linked to that specific user.
Please update with master branch and fix CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works thanks!
@Andrew-Chen-Wang I have synced with the main branch |
Please fix test cases. I don't have the time this winter break to review what this actually entails. Please ping me when test cases pass. Cheers! |
This commit is rewrite from jazzband#488 ref: Upon refreshing the token a new Outstanding token is created in the serializers.py where the user from the blacklisted token is added to the new refresh token. This insures that there is always an Outstanding token for each refresh token in use. Therefore, this will solve the issue of logging out from all devices by blacklisting all the Outstanding tokens linked to that specific user.
Is it still a pending issue ? |
this is still reproducible, I believe this is not fixed |
Upon refreshing the token, a new Outstanding token is created in the serializers.py where the user from the blacklisted token is added to the new refresh token. This ensures that there is always an Outstanding token for each refresh token in use. Therefore, this will solve the issue of logging out from all devices by blacklisting all the Outstanding tokens linked to that specific user.