@Named public class UserAuthenticationEventListener extends AbstractOncePerPeriodPublisher<SSOLoginEvent>
UserAuthenticationSucceededEvent
and UserTokenVerificationSucceededEvent
events
and publishing analytics event SSOLoginEvent
.
The analytics event is published at most once per day per application per node. It's only published, if the threshold
of unique users was reached - THRESHOLD_FOR_REPORTING
.Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.ImmutableMap<SSOLoginEvent,Set<String>> |
usernamesByEvent |
clock, counters, lastCountersResetTimestamp, reportIntervalMillis, threshold
eventPublisher
Constructor and Description |
---|
UserAuthenticationEventListener(com.atlassian.event.api.EventPublisher eventPublisher,
Clock clock) |
Modifier and Type | Method and Description |
---|---|
void |
onUserAuthenticatedWithSamlSsoEvent(UserAuthenticatedWithSamlSsoEvent event) |
void |
onUserAuthenticationSucceededEvent(UserAuthenticationSucceededEvent event) |
void |
onUserTokenVerificationSucceededEvent(UserTokenVerificationSucceededEvent event) |
protected void |
resetCounters() |
maybePublish, maybePublish, resetCountersIfNeeded
register, unregister
protected com.google.common.collect.ImmutableMap<SSOLoginEvent,Set<String>> usernamesByEvent
@Inject public UserAuthenticationEventListener(com.atlassian.event.api.EventPublisher eventPublisher, Clock clock)
@EventListener public void onUserAuthenticationSucceededEvent(UserAuthenticationSucceededEvent event)
@EventListener public void onUserTokenVerificationSucceededEvent(UserTokenVerificationSucceededEvent event)
@EventListener public void onUserAuthenticatedWithSamlSsoEvent(UserAuthenticatedWithSamlSsoEvent event)
protected void resetCounters()
resetCounters
in class AbstractOncePerPeriodPublisher<SSOLoginEvent>
Copyright © 2021 Atlassian. All rights reserved.