You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CONNACK packet sent by the broker in response to a successful v5 client authentication request must contain the same authentication method value as specified by the CONNECT packet, as specified in the MQTTv5 protocol specification:
If the initial CONNECT packet included an Authentication Method property then all AUTH packets, and any successful CONNACK packet MUST include an Authentication Method Property with the same value as in the CONNECT packet [MQTT-4.12.0-5].
Actual behavior
At the moment the v5 CONNACK is always sent with an empty authentication method field
To Reproduce
Steps
Use a v5 client (hivemq client works as well) to authenticate with the broker using an extended authentication method (in my case it's an extension of SimpleAuthenticator). The broker successfully authenticates the client and sends a CONNACK but the client rejects the connection because of this
Hi @michaelg9
This issue will be solved when enhanced authentication is exposed to the extension SDK.
Enhanced authentication will be implemented soon. We will then link and close this ticket.
Expected behavior
The CONNACK packet sent by the broker in response to a successful v5 client authentication request must contain the same authentication method value as specified by the CONNECT packet, as specified in the MQTTv5 protocol specification:
If the initial CONNECT packet included an Authentication Method property then all AUTH packets, and any successful CONNACK packet MUST include an Authentication Method Property with the same value as in the CONNECT packet [MQTT-4.12.0-5].
Actual behavior
At the moment the v5 CONNACK is always sent with an empty authentication method field
To Reproduce
Steps
Use a v5 client (hivemq client works as well) to authenticate with the broker using an extended authentication method (in my case it's an extension of SimpleAuthenticator). The broker successfully authenticates the client and sends a CONNACK but the client rejects the connection because of this
Details
Proposed bugfix:
In ConnectHandler.java, method buildMqtt5Connack:
A
.withAuthMethod(msg.getAuthMethod());
is missing from thereThe text was updated successfully, but these errors were encountered: