Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16342

Call to AdminTokenAction refreshes token in CTS datastore

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0.6, 6.0.0.7, 6.5.2.2
    • Fix Version/s: 6.5.3
    • Component/s: CTS, session
    • Labels:
    • Sprint:
      AM Sustaining Sprint 76
    • Story Points:
      5
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      Call to AdminTokenAction refreshes token in CTS datastore

      How to reproduce the issue

      AdminToken is used throughout the code such as RealmNormaliser.normalise, CoreWrapper.getAdminToken etc. Before AME-14302 was implemented, SSOTokenManager.isValidToken() retrieved token's state without refreshing session. However, it now refreshes token regardless if whether resetIdleTime flag is true or false. As it is now refreshing idle time in CTS datastore, it added extra time to processing anything in AM.

          public boolean isValidToken(SSOToken token, boolean resetIdleTime) {
              try {
                  return (getProvider(token).isValidToken(token, resetIdleTime));
              } catch (SSOException ignored) {
                  return (false);
              }
          }
      
      Expected behaviour
      Not to refresh idle timeout value for admin token
      
      Current behaviour
      Refreshes token in CTS everytime AdminTokenAction.run is called.
      

      Work around

      N/A

      Code analysis

      Change has been introduced by AME-14302.

      NOTE: This is solved in 7.0 by OPENAM-14194

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sachiko Sachiko Wallace
                Reporter:
                sachiko Sachiko Wallace
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: