Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9807

Add Refresh Window Property to OAuth2 Token Provider

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • Extensions
    • None

    Description

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            exceptionfactory David Handermann
            exceptionfactory David Handermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m

                Slack

                  Issue deployment