use of org.apereo.cas.support.events.authentication.CasAuthenticationPolicyFailureEvent in project cas by apereo.
the class CasAuthenticationAuthenticationEventListener method handleCasAuthenticationPolicyFailureEvent.
@Override
public void handleCasAuthenticationPolicyFailureEvent(final CasAuthenticationPolicyFailureEvent event) throws Exception {
val dto = prepareCasEvent(event);
dto.setPrincipalId(event.getAuthentication().getPrincipal().getId());
dto.putEventId(CasAuthenticationPolicyFailureEvent.class.getSimpleName());
this.casEventRepository.save(dto);
}
Aggregations