Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Event Listener for login and logout

Avatar

Level 1

I want to monitor when a user logs into aem and print some information into the logininfo.log file. I added an OGSI component and bound it to logininfo.log. But when I log into aem, nothing is printed into the log file. Is my EVENT_TOPIC written incorrectly?

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi @志鵬劉 correct EVENT_TOPIC for user login in AEM is:
org/apache/sling/auth/core/AuthenticationEvent

The rest code seems correct. If changing the EVENT_TOPIC doesn't work, you can use debugger and see if your code is executing properly or not. Please share the information here.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

Hi @志鵬劉 correct EVENT_TOPIC for user login in AEM is:
org/apache/sling/auth/core/AuthenticationEvent

The rest code seems correct. If changing the EVENT_TOPIC doesn't work, you can use debugger and see if your code is executing properly or not. Please share the information here.