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
I am trying to connect to a server which has a custom SASL mechanism. I have no control over the server, and the SASL mechanism they use does not adhere to the xmpp specification.
According to formatting rule number 2 of the xmpp 6120 specification:
Any XML character data contained within the XML elements MUST be
encoded using base 64, where the encoding adheres to the
definition in Section 4 of [BASE64] and where the padding bits
are set to zero.
SASL mechanism must have it's content b64 encoded, but the server I am connecting to doesn't do that. Instead, there is an xml tag in between which there are auth tokens. Example:
Since this goes against the standard, I wanted to ask first before making a pr. Something like parseSaslBody: boolean (default: true) is what I had in mind for a pr.
If this option were true the behavior is unchanged from how it is now.
If it's false, the string from response() would not be base64 encoded, neither would the text be escaped to character entities.
If you are against it, my best bet is making my own stripped down xmpp client based on this project - would that be ok?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to connect to a server which has a custom SASL mechanism. I have no control over the server, and the SASL mechanism they use does not adhere to the xmpp specification.
According to formatting rule number 2 of the xmpp 6120 specification:
SASL mechanism must have it's content b64 encoded, but the server I am connecting to doesn't do that. Instead, there is an xml tag in between which there are auth tokens. Example:
Since this goes against the standard, I wanted to ask first before making a pr. Something like
parseSaslBody: boolean (default: true)
is what I had in mind for a pr.If this option were
true
the behavior is unchanged from how it is now.If it's
false
, the string fromresponse()
would not be base64 encoded, neither would the text be escaped to character entities.If you are against it, my best bet is making my own stripped down xmpp client based on this project - would that be ok?
Beta Was this translation helpful? Give feedback.
All reactions