Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT 5 enhanced authentication feature support. #3038

Open
ting-ms opened this issue Apr 12, 2024 · 2 comments
Open

MQTT 5 enhanced authentication feature support. #3038

ting-ms opened this issue Apr 12, 2024 · 2 comments

Comments

@ting-ms
Copy link

ting-ms commented Apr 12, 2024

According to the Mosquitto documentation, Mosquitto supports enhanced authentication through plugins. However, there is a lack of detailed information on how to configure it. I've attempted to use the plugin from https://github.com/iegomez/mosquitto-go-auth, which allows for configuring a backend to store username/password information and authenticate using username/password credentials. However, I haven't come across anything related to enhanced authentication, such as challenge/response authentication. Any advice on this?

@Daedaluz
Copy link
Contributor

Daedaluz commented Apr 13, 2024

the mosquitto_auth_start and mosquitto_auth_continue callbacks in the plugin interface suggets challange/response authentication should be possible.

Or the MOSQ_EVT_EXT_AUTH_START and MOSQ_EVT_EXT_AUTH_CONTINUE callbacks if you use the newer plugin interface.

I haven't seen / heard of any plugins out there that utilize these methods in the wild, but then again, I haven't really searched for any.

I can imagine that any implementation probably would be very specific and very custom in many cases.

What kind of challenge / response authentication did you need?

Also: The extended auth is only MQTT v5.

@ting-ms
Copy link
Author

ting-ms commented Apr 15, 2024

@Daedaluz Thank you for your response. I just want to do some testing about enhanced authentication, so the specific authentication method isn't a critical concern for me right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants