public boolean isAuthenticated() {
        try {
            return IS_AUTHENTICATED_AUTHORIZER.isAuthorized(context, sessionStore, getProfiles());
        } catch (final HttpAction e) {
            throw new TechnicalException(e);
        }
    }
Tests if the current user is authenticated (meaning a user profile exists
which is not an {@link AnonymousProfile}).

@return whether the current user is authenticated
pac4j-core/src/main/java/org/pac4j/core/profile/ProfileManager.java