[
https://issues.apache.org/jira/browse/NIFI-9807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann updated NIFI-9807:
-----------------------------------
Summary: Add Refresh Window Property to OAuth2 Token Provider (was: Add
Renewal Window Property to OAuth2 Token Provider)
> 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
>
>
> 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)