projectnessie / nessie

Nessie: Transactional Catalog for Data Lakes with Git-like semantics
https://projectnessie.org
Apache License 2.0
908 stars 117 forks source link

OAuthClient: improve next token refresh computation #8922

Closed adutra closed 1 week ago

adutra commented 1 week ago

Discovered while working on #8847.

When there is no refresh token, use the access token expiration directly, instead of artificially computing a "default" expiration for a token that doesn't exist.

This PR also refactors TestOAuth2Utils.testShortestDelay to improve its readability.