-
Notifications
You must be signed in to change notification settings - Fork 53
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
Username/password authenticator password encoding issue #237
Comments
…y as the base library was using a fast encoding/decoding algorithm which doesn't work correctly for higher UTF code-points. The fix simply delegates to standard TextEncoder/TextDecoder. FIX #237
@mullerch thanks for the great report - this bug is a general encoding/decoding issue. Since payloads are encoded/decoded separately this is only an issue for non-payload data (such as the connect) and potentially headers or subjects. The new encoding strategy uses TextEncoder/Decoder, and even if less performant will always be correct. |
@mullerch |
Thanks for the quick fix |
Reproduce
Expected result
The client can authenticate successfully
Effective result
The client receives an "Authentication Violation" error.
Debug
When running a custom server and registering a custom authenticator, we can print the received password and we notice that the encoding of
§
character is wrong.Workaround
Encode the password in base64 when passing it to the connect function. Create a custom authenticator on the server side and decode the password.
The text was updated successfully, but these errors were encountered: