Hi Community,
I have a requirement where we want to track login and logout of author users in the AEM author instance , How can we do that ?
I tried creating a sling filter where we can check for login and logout URL, for this i am targeting j_security_check as login URL and /system/sling/logout as logout URL
I am able to get logout URL but not able to get login URL in sling filter
Please Help me with this or suggest some ideas to track login activity for a user
Solved! Go to Solution.
Hi @adivj95
You can try implementing authenticationinfopostprocessor which will be executed after authentication has been performed.
Please find a similar implementation in the below post. When info.getUser returns a value there you have add the custom logic .
Hope this helps
Please check
@arunpatidar
already check this, as i have mentioned in my question , I am not able to get j_security_check url in my filter
Hi @adivj95
You can try implementing authenticationinfopostprocessor which will be executed after authentication has been performed.
Please find a similar implementation in the below post. When info.getUser returns a value there you have add the custom logic .
Hope this helps
Thank you, @sherinregi , for providing this excellent solution.