-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: bugA general bugA general bug
Milestone
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
Metadata
Metadata
Assignees
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: bugA general bugA general bug