-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
When using SASL Digest-MD5 mechanism, the user will recieve a bad-protocol error because the second challenge response will be:
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>AA==</response>
instead of:
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></response>
I believe I have traced this down to the Base64 encode implementation. In Base64.js the encode function is implemented as a do while(), this means that the empty challenge response of "" gets encoded to AA== which then gets sent to the server and results in failure. This implementation of Base64 encoding does not cause this error.
http://www.webtoolkit.info/javascript-base64.html#.Up0Pr8Try4E
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels