public static boolean validReqAuthorizeInfo(HttpServletRequest req, boolean required,
            TMaster master, StringBuilder sBuffer,
            ProcessResult result) {
        if (!getStringParamValue(req, WebFieldDef.ADMINAUTHTOKEN,
                required, null, sBuffer, result)) {
            return result.isSuccess();
        }
        String paramValue = (String) result.getRetData();
        if (paramValue != null) {
            if (!paramValue.equals(master.getMasterConfig().getConfModAuthToken())) {
                result.setFailResult("illegal access, unauthorized request!");
            }
        }
        return result.isSuccess();
    }
Valid execution authorization info
@param req        Http Servlet Request
@param required   a boolean value represent whether the parameter is must required
@param master     current master object
@param sBuffer     string buffer
@param result     process result
@return valid result for the parameter value
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/utils/WebParameterUtils.java