-
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:
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
...
- is duplicated by
-
OPENAM-11829 SSOToken idletime reset even when it shouldn't be
-
- Resolved
-