eclipse / paho.golang

Go libraries
Other
327 stars 92 forks source link

Reauthentication with MQTT5 Enhanced Authentication (AUTH packet exchange) in autopaho #212

Closed vishnureddy17 closed 7 months ago

vishnureddy17 commented 9 months ago

I noticed that autopaho does not support reauthentication MQTT5 enhanced authentication. This may be a feature that users need.

MattBrittan commented 9 months ago

This should be supported through AuthHandler (see this PR). I've not tried to use it but there is a test.

AutoPaho is passed the ClientConfig so the callback should work there too.

vishnureddy17 commented 9 months ago

I meant for re-authentication, The paho client has an Authenticate method so a user can initiate a re-authentication on an already-connected client, but it seems like autopaho doesn't have an equivalent. (edited the issue to make it clearer)

MattBrittan commented 9 months ago

Cool - as paho supports this it should be a very simple change (pretty much copy Subscribe but call paho.Authenticate).

minyukim commented 7 months ago

Could I try this one?

MattBrittan commented 7 months ago

@Widgle - go for it; note that you will need to sign the contributor agreement (if you have not already done so). I will be making a few further changes this week that may impact yours but I'm sure we can make things work.