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

GetSession API call refreshes Idle time every time it is called.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 14.5.0, 5.5.1
    • Fix Version/s: None
    • Component/s: API descriptor
    • Labels:
    • Support Ticket IDs:

      Description

      Bug description

      When making a call to get session info

       

      curl -X POST -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0" -H "iplanetDirectoryPro: AQIC5wM2LY4Sfcxs...EwNDU2NjE0*" "http://host1.example.com:8080/openam/json/realms/root/sessions/?_action=getSessionInfo&tokenId=BXCCq...NX*1*"

       

      It gives back maxIdle time refreshed every time.

      You used to be able to get idle time by setting the refresh to false but it doesn't look like there is a way to do that anymore.

       

      How to reproduce the issue

      Authenticate with a user and get back the token id

       

      curl -X POST -H "X-OpenAM-Username: demo" -H "X-OpenAM-Password: changeit" -H "Content-Type: application/json" http://openam.example.com:8080/openam/json/realms/root/authenticate

       

       

       

      {"tokenId":"EFo7rWF0ratWAPFLwchC4xOq-qU.*AAJTSQACMDEAAlNLABxUclFvdkMzaGVWNlFodnRhM21sOGJCSGU1Ums9AAJTMQAA*","successUrl":"/openam/console","realm":"/"}
      

      Then when you make the call to get the session information get your iplanetDirectoryPro token and take your tokenID and use them in the below call.

       

      curl -X POST -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0" -H "iplanetDirectoryPro: O2B0Pf8woK5MsQHUhw-zbBka850.*AAJTSQACMDEAAlNLABw0dnFzWXRXc0thRXJMa3ZHSURneGVRcDhYTm89AAJTMQAA*" "http://openam.example.com:8080/openam/json/realms/root/sessions/?_action=getSessionInfo&tokenId=tqhz9tfNADvT4JJtBcdfEwF2EtM.*AAJTSQACMDEAAlNLABxSdWg3bDVXWEVWck0rWEtpVjlteUppaEd3L3M9AAJTMQAA*"

       

       

      Expected behaviour
      see the idle time and how long you have left.
      
      Current behaviour
      Will show how long the max idle time is set to.

      Work around

      OPTIONAL - If you have a workaround, please put the details here (remove this text)

      Code analysis

      OPTIONAL - If you already investigated the code, please share your finding here (remove this text)

      org.forgerock.$className.java
      ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jordan.kasper Jordan Kasper [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: