-
Notifications
You must be signed in to change notification settings - Fork 6.1k
clockSkew Javadoc is not consistent with implementation #10174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reaching out @andywhite27. |
Hi @eleftherias , I understand the reply although I don't agree! However, that aside there is still an issue here with the documentation which is the first paragraph of my original note. The documentation on each of the classes in OAuth2AuthorizedClientProviderBuilder are incorrect. If the code is not going to be fixed then at least the documentation should be please. "In each of the inner classes in the OAuth2AuthorizedClientProviderBuilder (such as the PasswordGrantBuilder) the comment on the use of the clockskew is |
Thanks @andywhite27, I have reopened the issue. Are you interested in submitting a PR to update the documentation? |
@eleftherias I have prepared PR #10358. Please take a look. Also please note, that in implementations of |
Uh oh!
There was an error while loading. Please reload this page.
Spring Security 5.5.1
In each of the inner classes in the
OAuth2AuthorizedClientProviderBuilder
(such as thePasswordGrantBuilder
) the comment on the use of the clockskew isPasswordGrantBuilder.clockSkew()
"An access token is considered expired if it's before {@code Instant.now(this.clock) - clockSkew}."
However, the use of the clockskew in the
PasswordOAuth2AuthorizedClientProvider
and otherOAuth2AuthorizedClientProvider
implementations does not use the clock skew in this way and instead calculates if the token is expired usingPasswordOAuth2AuthorizedClientProvider.hasTokenExpired()
The calculation does not seem to be the correct use and should match the documentation and be
The text was updated successfully, but these errors were encountered: