Problem: The application never gets timed out even after the Maximum Token-Expiration. For testing purposes i have set the Maximum Token-Expiration Period (seconds) on the MobileFirst Platform console to 60 seconds. How can i properly handle session time out based on the token expiration period set in the console?
Scenario: Suppose the user logins into the application and he stays idle for 60 seconds. He performs another action which invokes a different service call for ex. getCountryList. In the logs i see that a request for /mfp/api/preauth/v1/preauthorize is send first. On debugging i found that the sendRequest method in WLResourceRequest gets the scope as access_Restricted and hence invokes the obtain access method in this case.Hence it does not time out.
Expected: In this scenario i would want to automatically logout the user with a session time out instead of obtaining the access token again.
Is it possible to handle this case?