public void setExpectedToken(String expectedToken) {
        this.expectedToken = expectedToken;
    }
Active the authentication between agent and oap receiver. token checker if expected token exists in application.yml
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/server/auth/AuthenticationInterceptor.java