Skip to content
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

added Outstanding tokens to Blacklisted tokens but token still working #744

Open
dirosv-eden opened this issue Aug 20, 2023 · 3 comments
Open
Labels

Comments

@dirosv-eden
Copy link

dirosv-eden commented Aug 20, 2023

hello i added 'rest_framework_simplejwt.token_blacklist', to INSTALLEDS_APPS then run python manage.py migrate. The outstanding tokens and blacklisted tokens display on django admin. i try to authenticated . the authenticated token added in outstanding tokens after that i added token to blacklisted tokens token still work.

@triplaj
Copy link

triplaj commented Feb 25, 2024

if used jwt then "refresh-token" is placed on the blacklist (blacklisted/logged out). If the refresh token is used, it is rejected, but the access token still works until its expiration time, as the access token is never checked against the blacklist (which is probably purpose because only refresh tokens are in blacklist checking, access tokens goes through without blacklist inspection).

@jdejoode
Copy link

Not sure whether this is a bug or intended behavior. I can confirm that blacklisting works on the refresh token and not on the access token of a token pair. That means the access token remains usable until it expires. It would be nice to have a method that invalidates the access token.

@jdejoode
Copy link

Relevant: #713 (comment) @tpotjj argues that the access token should be short-lived and hence might not require invalidating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants