@Override
    public boolean supports(final JoinPoint auditTarget, final Authentication authentication,
                            final Object resultValue, final Exception exception) {
        return super.supports(auditTarget, authentication, resultValue, exception)
            && authentication.containsAttribute(SurrogateAuthenticationService.AUTHENTICATION_ATTR_SURROGATE_USER);
    }
This is {@link SurrogateAuditPrincipalIdProvider}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-surrogate-core/src/main/java/org/apereo/cas/authentication/audit/SurrogateAuditPrincipalIdProvider.java