Repository navigation
Replies: 2 comments 1 reply
|
the reuse detection kicks in when the second tab is trying to refresh the token as a result all refresh_tokens are being revoked |
0 replies
|
We encountered the same problem. Is the deactivation of the "Revoke Refresh Token" the only solution to make that works as expected? Are there potential security issues doing that? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
We tried to activate KeyCloak refresh token rotation:

But as indicated by the diagram we are facing an "issue" with a multi-tabs SPA (same user => same SSO session) : all the RT of a SSO session are revoked even if no reuse has been detected (so not only in a theft case): tab A and tab B have different RT and the use of RTA1 by tab A (RTA1 has not been used yet) triggers the revocation of RTB2 of tab B.
According to doc of other IdP like Auth0 the implemtation is slightly different: the revocation of all the RT of a SSO session happens only when a RT is reused (so only in a theft case) => it is called "Refresh Token Rotation with Reuse Detection"
https://auth0.com/blog/securing-single-page-applications-with-refresh-token-rotation/
Note also that Auth0 defines a reuse interval and not a max reuse (nb)
So, what is the best behaviour ? And sould KeyCloak change its behaviour ?
Thanks and regards
All reactions