[jdev] Re: Problem Connecting to GoogleTalk using my custom client

Joe Beda jbeda at google.com
Mon Oct 24 11:50:17 CDT 2005


>> Does this mean GoogleTalk ONLY supports X-GOOGLE-TOKEN??? I don't see any
advertisement for SASL-PLAIN or MD5 or anything....

You have two choices here:
1) Send <starttls/>.  The server will respond with <proceed/>.  You then
negotiate TLS and restart the XMPP stream.  The features advertized then
will be SASL plain
2) Connect to 5223 instead.  Negotiate TLS right away and then log in as you
are w/ old school non-SASL login.

Joe

On 10/24/05, Mukil Kesavan <mukilk at gmail.com> wrote:
>
> I do agree Norman that instead of building something from scratch I can
> work on improving an existing library. But the "so-called" library that I am
> working on is going to be very basic and I am writing it purely for my own
> understanding. Besides, most of the current libraries have many dependancies
> which I am not so comfortable with.
>
> Somebody please tell me how I can do the TLS/SASL part in order to connect
> to GoogleTalk... This is the latest XML trace that I get...
>
> SENT:
> <?xml version='1.0'?><stream:stream to='gmail.com<http://www.google.com/url?sa=D&q=http%3A%2F%2Fgmail.com>'
>
> xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams<http://www.google.com/url?sa=D&q=http%3A%2F%2Fetherx.jabber.org%2Fstreams>'
> version='1.0'>
>
>
> RECEIVED:
> <?xml version="1.0" encoding="UTF-8"?><stream:stream from="gmail.com<http://www.google.com/url?sa=D&q=http%3A%2F%2Fgmail.com>"
>
> id="E6B9A3D4" version="1.0"
> xmlns:stream="http://etherx.jabber.org/streams<http://www.google.com/url?sa=D&q=http%3A%2F%2Fetherx.jabber.org%2Fstreams>"
>
> xmlns="jabber:client"><stream:features><starttls
> xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms
>
> xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>
>
> SENT:
> <iq type='set' id='MyLib0'><query
> xmlns='jabber:iq:auth'><username>myname at gmail.com
> </username><password>mypasswd</password><resource>Res1</resource></query></iq>
>
>
> RECEIVED:
> <iq type="error" id="MyLib0"><query
> xmlns="jabber:iq:auth"><username>myname at gmail.com</username><password>mypasswd</password><resource>Res1</resource></query><error
>
> code="405" type="cancel"><not-allowed
> xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
> xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Server
> does not support PLAIN</text></error></iq></stream:stream>
>
> Does this mean GoogleTalk ONLY supports X-GOOGLE-TOKEN??? I don't see any
> advertisement for SASL-PLAIN or MD5 or anything....
>
> How did you guys fix this problem? Can somebody tell me what things should
> be done after I first receive the reply from google server???
>
> Thanks and awaiting your reply,
>
> - Mukil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20051024/d23ca35c/attachment-0002.htm>


More information about the JDev mailing list