-
Notifications
You must be signed in to change notification settings - Fork 2.9k
NIFI-15070 Fixed OAuth2AccessTokenProvider to properly handle permane… #10401
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
base: main
Are you sure you want to change the base?
Conversation
…nt access tokens that have no expiration time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this issue @turcsanyip.
On a quick review, I'm concerned about making the expiresIn field nullable, as it changes the expectations for the returned getExpiredIn().
Instead, returning an Optional<Duration> as a new method on AccessToken might be a more compatible way to implement the changes.
|
@exceptionfactory Thanks for highlighting this issue. Actually, the changed behavior was not applied in Instead, I would suggest modifying the type to |
|
Thanks for the reply @turcsanyip. Although this is not part of the |
|
Thanks @exceptionfactory. Updated the PR with the change in |
|
@exceptionfactory Based on further testing, it looks Salesforce expires the session even if the access token has no expiration time. So maybe it would be a better approach to add a user configurable |
Thanks for the update, I will hold off on further feedback until you have run through some additional tests. Perhaps introducing a strategy property, something like |
…nt access tokens that have no expiration time
Summary
NIFI-15070
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation