@Override
    public Response intercept(Chain chain) throws IOException {
        Request oldRequest = chain.request();
        HttpUrl.Builder builder = oldRequest.url()
                .newBuilder()
                .addEncodedQueryParameter("username", username)
                .addEncodedQueryParameter("password", password);

        Request newRequest = oldRequest.newBuilder()
                .method(oldRequest.method(), oldRequest.body())
                .url(builder.build())
                .addHeader("tenant", tenantGetter.get())
                .build();
        return chain.proceed(newRequest);
    }
AuthInterceptor
Before okhttp call a request, uniformly encapsulate the relevant parameters of authentication
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/service/AuthInterceptor.java