-
I want to revoke an access token. Can I?
-
No.
You can't explicitly revoke an access token in FusionAuth. We don't support RFC 7009: https://www.rfc-editor.org/rfc/rfc7009.html and based on the number of upvotes for this, I don't know if the community wants us to: https://github.com/FusionAuth/fusionauth-issues/issues/201 But if you do, feel free to upvote that issue.
If you want to have an access token become invalid, you have to manage it yourself. That is what is outlined in this article.
The process is basically:
- set up webhooks to fire to all the resource servers when a refresh token is invalidated (when the user logs out)
- listen for that event, and when it occurs, record the user with the invalid token in the resource server (in redis, db, etc)
- next time an access token is presented, verify that it is not for a user who has logged out
If you want to handle the case where a user logs out, then logs back in quickly, then the time based logic in the Webhooks section here: https://fusionauth.io/learn/expert-advice/tokens/revoking-jwts needs to be implemented.
-
F FASupportBot referenced this topic on
-
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login