michaeljmarshall opened a new pull request #13951: URL: https://github.com/apache/pulsar/pull/13951
### Motivation This is a draft PR for a PIP I plan to submit. I still need to add tests and documentation for this feature. The core feature that I am adding is the ability to refresh the OAuth2 token in the background without affecting the current token. This will improve stability for OAuth2 users, especially if/when their IDP is unavailable. ### Modifications * Add a `ScheduledThreadPoolExecutor` to the `AuthenticationOAuth2` and schedule refresh token tasks to preemptively refresh a token. ### Verifying this change I will add tests before removing the draft status of this PR. ### Does this pull request potentially affect one of the following parts: This PR changes the default behavior of the `AuthenticationOAuth2` class and it also adds a new configuration value for end users. I plan to discuss the change on the mailing list. ### Documentation - [x] `doc-required` I will add documentation once the feature design is solidified. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
