wind-c / comqtt

A lightweight, high-performance go mqtt server(v3.0|v3.1.1|v5.0) supporting distributed cluster
MIT License
972 stars 53 forks source link

Q about http auth plugin #50

Closed perbu closed 1 year ago

perbu commented 1 year ago

Hi.

I'm my quest to make the tests greener I'm currently trying to figure out how http auth plugins work. I'm looking at https://github.com/wind-c/comqtt/blob/main/plugin/auth/http/http.go#L138 and I see that comqtt no longer sends the topic to the auth server.

Is this by design? If so it would be hard to limit a user only to certain topics.

Cheers,

Per.

perbu commented 1 year ago

Got it. The http server responds with a set of filters for each users.