private void postLoginEvent()

in src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java [1471:1490]


    private void postLoginEvent(final HttpServletRequest request, final AuthenticationInfo authInfo) {
        final Map<String, Object> properties = new HashMap<>();
        properties.put(SlingConstants.PROPERTY_USERID, authInfo.getUser());
        properties.put(AuthenticationInfo.AUTH_TYPE, authInfo.getAuthType());

        // allow extensions to supply additional properties
        final List<JakartaLoginEventDecorator> localList = this.jakartaLoginEventDecorators;
        for (final JakartaLoginEventDecorator decorator : localList) {
            decorator.decorateLoginEvent(request, authInfo, properties);
        }
        final List<LoginEventDecorator> localListDep = this.loginEventDecorators;
        for (final LoginEventDecorator decorator : localListDep) {
            decorator.decorateLoginEvent(JakartaToJavaxRequestWrapper.toJavaxRequest(request), authInfo, properties);
        }

        EventAdmin localEA = this.eventAdmin;
        if (localEA != null) {
            localEA.postEvent(new Event(AuthConstants.TOPIC_LOGIN, properties));
        }
    }