You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2022/03/17 14:20:00 UTC

[jira] [Created] (NIFI-9807) Add Renewal Window Property to OAuth2 Token Provider

David Handermann created NIFI-9807:
--------------------------------------

             Summary: Add Renewal 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
             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)