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

After adding the blacklist successfully, the token is still authenticated successfully #167

Open
AshuaiNe opened this issue Aug 2, 2024 · 2 comments

Comments

@AshuaiNe
Copy link

AshuaiNe commented Aug 2, 2024

Adding the OutstandingToken succeeded, but JWTAuth did not check that the token did not appear in the token blacklist before considering any refresh token or sliding token valid.
image

BLACKLIST_AFTER_ROTATION = True

Does AUTH_TOKEN_CLASSES need to configure other classes?
image

I hope to get help, thanks

@AshuaiNe
Copy link
Author

AshuaiNe commented Aug 2, 2024

There is another question

token = RefreshToken(token).blacklist()

if verify default True
image

Add to blacklist, verify False?

@eadwinCode
Copy link
Owner

@AshuaiNe
Did you add "ninja_jwt.token_blacklist" in INSTALL_APPS?

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

No branches or pull requests

2 participants