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

AccessToken isExpired broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.16.0
    • 1.16.0
    • Core Framework
    • None

    Description

      While using a build of the current snapshot (1.16.0) so i could use the new StandardOAuth2AccessTokenProvider I ran into an issue with how the AccessToken got changed to calculate if the token is expired.  This is going to break potentially a lot of folks using that AccessToken.  It's subtracting 5000 seconds from the expiresIn property.  I think it was assumed that expires_in would be in millis also, but it is not, per OAuth standards:
      https://datatracker.ietf.org/doc/html/rfc6749#section-4.2.2
      Here is a link to the PR that got merged where I added a comment ( to little to late ).
      https://github.com/apache/nifi/pull/5319#pullrequestreview-909366668

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              LawrenceGrass Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 20m
                  20m