[ 
https://issues.apache.org/jira/browse/NIFI-9807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508752#comment-17508752
 ] 

ASF subversion and git services commented on NIFI-9807:
-------------------------------------------------------

Commit ab0d2c2f72d51fd78dd9dfe1d976153a56aff8fd in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ab0d2c2 ]

NIFI-9807 Added Refresh Window Property to OAuth2 Token Provider

- Removed hard-coded expiry margin from AccessToken.isExpired() determination

This closes #5876

Signed-off-by: Mike Thomsen <[email protected]>


> Add Refresh Window Property to OAuth2 Token Provider
> ----------------------------------------------------
>
>                 Key: NIFI-9807
>                 URL: https://issues.apache.org/jira/browse/NIFI-9807
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Minor
>             Fix For: 1.16.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The {{StandardOauth2AccessTokenProvider}} Controller Service supports 
> internal token expiration checking based on the {{expiresIn}} property of the 
> current {{AccessToken}}. The introduction of the provider service included a 
> hard-coded number, subtracted from the {{expiresIn}} property, in order to 
> prompt token renewal prior to the exact time of expiration.
> In order to support both short-lived and long-lived token expiration 
> scenarios, a new Controller Service property should be added to 
> {{StandardOauth2AccessTokenProvider}}.  The property should provide a 
> configurable duration within which the service will attempt to refresh the 
> token.
> Prior to the introduction of the {{StandardOauth2AccessTokenProvider}}, the 
> {{AccessToken}} class implemented the {{isExpired}} check based on the exact 
> time of expiration. With this class being part of the OAuth2 Service API, 
> that behavior should be restored and the new renewal window property should 
> be implemented in the Controller Service itself.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to