VolantMQ / volantmq

High-Performance MQTT Server
Apache License 2.0
982 stars 169 forks source link

Auth Manager methods do nothing #91

Closed mochi-co closed 6 years ago

mochi-co commented 6 years ago

I've been trying to implement the internal auth methods demonstrated in the examples folder, only I have discovered that neither my implementation nor the examples actually perform any checks - the auth manager Password method does not appear to be called during the connection establishment. I noticed in clients/sessions (processConnect) there's a lot of code commented out that seems to be related to the auth checks.

Is there a plan for when this might return? I am happy to take a look at it if someone (@troian ?) wants to point me in the right direction for what needs doing. Sorry if I missed something! Many thanks for you work.

troian commented 6 years ago

I'm about to push API changes to auth stuff with some examples

troian commented 6 years ago

You can find updated API. The main goal is VolamtMQ is not responsible for auth at all (there is basic auth included but it's recommended for demo purpose only). Any kind of auth is not performed by plugins. I.e. it's planned to implement plugins for a different kind of authn/authz.