emqx / emqx-extension-examples

Examples for ExHook & ExProto
46 stars 21 forks source link

Does Java gRPC OnClientAuthenticate works? #8

Open Bevr2020 opened 3 years ago

Bevr2020 commented 3 years ago

int v4.3.0 after setting allow_anonymous = false, let java grpc OnClientAuthenticate return true to EMQ X System, but still cannot build tcp links to emqx, why?

HJianBo commented 3 years ago

Try to construct reply instance by following codes

            ValuedResponse reply = ValuedResponse.newBuilder()
                                                 .setBoolResult(true)
                                                 .setType(ValuedResponse.ResponsedType.STOP_AND_RETURN)
                                                 .build();