How to identify a user last logged in into AEM , In the given scenario AEM is connected with LDAP or IDP and the users are synced into AEM
Even if the users are authenticated in LDAP or IDP crx token will be created in AEM .
So can we try to get a valid crx token time as the last login time?
Please share which API can help to achieve this?
AEM is REST based and does not have the concept of session. So there is no feature to track login or logout details. Most of our customers use some kind of central authentication Ex- SSO hence no need arises to have such functionality built in. However if needed you have the ability to implement such at a project level solution. Ex:- custom login modules or auth-handler by taking project specific constraints and requirements into account
Yes i do understand and i am not speaking about request sessions.
How about crx token? as this will be unique for each instance and that will any way decide the user login validity
Is there a way to know crx token created time along with it is properties with some API's
Not sure if you already got it worked, just sharing below link which might help others in future