Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2382

Log the token when it's expired

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • Server
    • None

    Description

      When a Knox Token is issued vie the TokenResource a useful message is displayed in the log with an obfuscated token representation. For instance:

      2020-06-08 10:54:36,106 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(390)) - Knox Token service (dt) issued token eyJhbG...sTtTEz (7f876ed1-419a-4e90-a9ae-14d8d8a776a6)
      

      Within AbstractJWTFilter, when Knox realizes a token is expired, the following message is shown:

      2020-06-08 10:54:37,111 INFO  federation.jwt (AbstractJWTFilter.java:validateToken(301)) - Access token has expired; a new one must be acquired.
      

      It'd be extremely useful to show the same obfuscated token representation here too.

      Attachments

        Issue Links

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              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 - 20m
                  20m