We have SAML integration in place for our application(includes both public and secure pages) where AEM is Service Provider and Salesforce is Identity Provider.
We are trying to achieve idle session logout where if user does not interact with application for 5 minutes or so user must be logged out.
In order to achieve this we are following this article https://helpx.adobe.com/experience-manager/kb/How-to-set-token-session-expiration-AEM.html where in OSGi configuration org.apache.jackrabbit.oak.security.authentication.token.TokenConfigurationImpl, property value is set Token Expiration to 600, but does not seem to work i.e. after idle time if user tries to access secure page(refresh secure page), he is not taken to login screen or SAML Authentical Handler is not invoked.
Could you please let me know if the above approach is applicable for SAML authentication too? Or are there any alternate approaches?
Note: Idle session logout configuration is in place at Salesforce end
Yes, we are handling Logout via SAML Handler i.e. Handle Logout is checked and Logout URL is the URL given by IDP.
Thanks & Regards,
As mentioned in the original post, we have followed the same helpx article but does not seem to work. Even after Token Expiration time, if user tries to access secure page, user is not taken to Identity Provider's authentication screen.
Thanks & Regards,
Is your SAML set up as Idp initiated or SP initiated?
If it's SP initiated then that Oak login token approach won't work since the session is never invalidated with the Idp.
The Idp will log you right back in.
hi @srikanthp689160 ,
What was the resolution to this?
We have a similar requirement.
SAML is set up to handle logout.
The Login is SP initiated.
We need to logout the user from IDP when AEM session is expired.Is there is way to achieve this?