You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using Redis to store OAuth2Authorization and setting reuseRefreshTokens to true, when your refresh token is about to expire, call the refresh endpoint. The expiration time of OAuth2Authorization will be reset, but the expiration time of the refresh token remains unchanged. At this point, if the time exceeds the expiration time of the refresh token, the server will deny access, but OAuth2Authorization still exists in Redis.
To Reproduce
Use the official redis store code
Set TokenSettings#reuseRefreshTokens to true
When the refresh token is about to expire, call the /oauth2/token grant_type=refresh_token endpoint
Expected behavior
The refresh token expires at the same time as the OAuth2Authorization lives.
Reports that include a sample will take priority over reports that do not.
At times, we may require a sample, so it is good to try and include a sample up front.
The text was updated successfully, but these errors were encountered:
wzkris
changed the title
Data will exist in redis when refresh token expired
OAuth2Authorization will exist in redis when refresh_token expired
Apr 18, 2025
Describe the bug
When using Redis to store
OAuth2Authorization
and settingreuseRefreshTokens
to true, when your refresh token is about to expire, call the refresh endpoint. The expiration time of OAuth2Authorization will be reset, but the expiration time of the refresh token remains unchanged. At this point, if the time exceeds the expiration time of the refresh token, the server will deny access, but OAuth2Authorization still exists in Redis.To Reproduce
TokenSettings#reuseRefreshTokens
to true/oauth2/token grant_type=refresh_token
endpointExpected behavior
The refresh token expires at the same time as the
OAuth2Authorization
lives.Sample
A link to a GitHub repository with a minimal, reproducible sample.
Reports that include a sample will take priority over reports that do not.
At times, we may require a sample, so it is good to try and include a sample up front.
The text was updated successfully, but these errors were encountered: