-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Invalidation / Blacklist a token #1137
Comments
Hi here ? Have u got an idea ? @chalasr is it a missing feature, if true perhaps can i propose an implementation !? |
Hi @cedriclombardot, I want this to happen 👍 So a pull request would be much appreciated.
Please let me know if you're still wiling to work on this. Anyway, happy to know your thoughts on the above proposal |
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
Based on lexik#1005
This PR was squashed before being merged into the 2.x branch. Discussion ---------- feat: Invalidate a JWT token This PR adds support for invalidating a JWT token #1137. The code comes mainly from the discussion #1005 (reply in thread) Thanks to `@mbabker` I think that the PR meets the needs mentioned in #1137 (comment) > > * This feature must be opt-in > * Tokens should be given a jti claim whose value should be the only thing persisted: if the feature is enabled and a token's jti exists in the blocklist then that token must be rejected. > * Feature detection should not be only based on the presence of the jti, as it mght break existing code that relies on this claim today. > * The blacklist term should be avoided, alternative such as blocklist should be preferred :) > * We will probably need a simple abstraction for the blocklist storage. A very limited set of built-in implementations should be provided, not necessarily as part of the first iteration (i.e. it can wait til another PR). > Commits ------- bb8aa6d feat: Invalidate a JWT token
Implemented in #1170. Thanks for rising the topic @cedriclombardot |
Hi,
I've not found in documentation, how to invalidate a JWT token, what is the good process method ?
Found issues about token_blacklist.* but not found in code and not understand the good way
Thanks in advance
The text was updated successfully, but these errors were encountered: