-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Refresh tokens configured for Sliding window with max lifetime do not update TTL when refreshed
Description
A refresh token configured with an expiration policy of Sliding window with a maximum lifetime. does not update its TTL when used to refresh. This means that the refresh token effectively expires after its initial Duration rather than after the configured Maximum lifetime even if it is continuously refreshed.
Affects versions
1.46.0-1.48.2
Steps to reproduce
- Configure the tenant or application for refresh tokens
Expiration policy- Sliding window with a maximum lifetime.Duration- 1 minuteMaximum lifetime- 10 minutesUsage policy- Reusable. (easier to test this way)- Log in to get a refresh token
- Call the
/api/jwt/refreshendpoint to refresh the token prior to the expiration (e.g. at 50 seconds) - Call the
/api/jwt/refreshendpoint again after theDurationhas expired (e.g. at 65 seconds) - The refresh token is no longer valid, but it should be usable at this point
Expected behavior
If the refresh token is used prior to Duration expiring, its sliding window TTL should be extended and continue to be extended until it reaches the maximum lifetime.
Screenshots
Community guidelines
All issues filed in this repository must abide by the FusionAuth community guidelines.
Related
Release Notes
Update the refresh token TTL when using the sliding window with a maximum lifetime JWT Expiration Policy.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Delivered
