dotnet / dotnet/MQTTnet

Support AUTH packet exchange while connecting MqttClient

Open
#2,029 1 comment 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Currently, it appears that if the client sends a `CONNECT` packet using MQTT 5 extended authentication (i.e., it sets the Authentication Method) and it receives an `AUTH` packet from the server instead of a `CONNACK` packet, it will throw an exception:

https://github.com/dotnet/MQTTnet/blob/e18a91a4b59bc312aa9acf9be575401d07b793e4/Source/MQTTnet/Client/MqttClient.cs#L466-L469

This means that the client cannot connect using extended authentication with AUTH packets being exchanged. It looks like this feature gap is not being tracked, so I am opening this issue to track it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.