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
My POV
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