Mercurial > eldonilo > lightstring
comparison plugins/PLAIN.js @ 64:d9f5ae0b6d98
Support for DIGEST-MD5 authentication. (plugin)
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Wed, 01 Feb 2012 19:47:49 +0100 |
parents | 20da4fb67977 |
children | 2e8fbf3bce7f |
comparison
equal
deleted
inserted
replaced
63:20da4fb67977 | 64:d9f5ae0b6d98 |
---|---|
32 this.send( | 32 this.send( |
33 "<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'" + | 33 "<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'" + |
34 " mechanism='PLAIN'>" + token + "</auth>" | 34 " mechanism='PLAIN'>" + token + "</auth>" |
35 ); | 35 ); |
36 }, | 36 }, |
37 //TODO twice success event | |
38 'success': function (stanza) { | 37 'success': function (stanza) { |
39 this.send( | 38 this.send( |
40 "<stream:stream to='" + this.jid.domain + "'" + | 39 "<stream:stream to='" + this.jid.domain + "'" + |
41 " xmlns='jabber:client'" + | 40 " xmlns='jabber:client'" + |
42 " xmlns:stream='http://etherx.jabber.org/streams'" + | 41 " xmlns:stream='http://etherx.jabber.org/streams'" + |