Skip to content

Rotated refresh token uses the expiry of initial refresh token#2320

Open
kpur-sbab wants to merge 1 commit intospring-projects:mainfrom
kpur-sbab:main
Open

Rotated refresh token uses the expiry of initial refresh token#2320
kpur-sbab wants to merge 1 commit intospring-projects:mainfrom
kpur-sbab:main

Conversation

@kpur-sbab
Copy link
Copy Markdown

In Spring Authorization Server, when refresh token rotation is enabled, each newly issued refresh token receives a full TTL. As a result, if a refresh token is rotated close to its expiry, the new token effectively resets its lifetime. This behavior appears to violate the #297 stated guideline and could introduce a potential security concern.

The fix is to make the changes in OAuth2RefreshTokenGenerator to enable this support by reusing the expiry from the context's authorization model

…xpiry timestamp from the initial refresh token

Closes spring-projects#2318

Signed-off-by: Kishore <kishore.purushothaman@sbab.se>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants