Skip to content

Instantly share code, notes, and snippets.

@rb2k
Created February 9, 2010 17:35
Show Gist options
  • Save rb2k/299443 to your computer and use it in GitHub Desktop.
Save rb2k/299443 to your computer and use it in GitHub Desktop.
<stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" id="8bb36896-d1d4-4b8e-a534-483d6f18e9ab" from="messi.mi.hdm-stuttgart.de" version="1.0" xml:lang="en">
<stream:features>
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<mechanism>PLAIN</mechanism>
</mechanisms>
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<auth xmlns="http://jabber.org/features/iq-auth" />
</stream:features>
</stream:stream>
­
<iq type="get" id="mir_0">
<query xmlns="jabber:iq:auth">
<username>ms155</username>
</query>
</iq>
­
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">BLABLABLABLABLA</auth>
­
<iq id="mir_0" type="result">
<query xmlns="jabber:iq:auth">
<username />
<password />
<resource />
</query>
</iq>
­
<iq type="set" id="mir_1">
<query xmlns="jabber:iq:auth">
<username>ms155</username>
<password>BLABLABLABLABLA</password>
<resource>Miranda</resource>
</query>
</iq>
­
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<not-authorized />
</failure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment