presto-main/src/main/java/io/prestosql/server/security/AuthenticationFilter.java/AuthenticationFilter/doesRequestSupportAuthentication
class AuthenticationFilter:    private boolean doesRequestSupportAuthentication(HttpServletRequest request)
    {
        if (authenticators.isEmpty()) {
            return false;
        }
        if (request.isSecure()) {
            return true;
        }
        return httpsForwardingEnabled && Strings.nullToEmpty(request.getHeader(HttpHeaders.X_FORWARDED_PROTO)).equalsIgnoreCase(HTTPS_PROTOCOL);
    }