Closed
Description
Summary
After upgrading to 5.2.0.RELEASE, we noticed that the clock skew used to calculate an access token's expiration in conjunction with ServerOAuth2AuthorizedClientExchangeFilterFunction
seems to have the wrong sign.
E.g., compare the hasTokenExpired
method in the various AuthorizedClientProvider
implementations of 5.2.0.RELEASE with the implementation of 5.1.6.RELEASE.
Though consistent with the javadoc, the skew should be added to the current timestamp in order to conservatively consider an access token expired.
Actual Behavior
token has expired <==> expiration time < now - skew
Expected Behavior
token has expired <==> expiration time < now + skew
Version
5.2.0.RELEASE