Opened 7 years ago

Last modified 7 years ago

#23 new defect

gmail access

Reported by: maxim.reznik Owned by: alexander.basov
Priority: major Milestone:
Component: axmpp library Version: 0.0.1
Keywords: Cc:

Description

Trying to connect with google account, I get next error:

<stream:error>
 <host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/>
 <str:text xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">
Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.
</str:text>
</stream:error>
</stream:stream>

while AXMPP request is

<stream:stream xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xmlns='jabber:client' to='talk.google.com' >

Pidjin request is

<stream:stream to='gmail.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>

It seems @to is invalid.

Settings in con_cli are:

   S.Set_JID (League.Strings.To_Universal_String ("ME@gmail.com"));
   S.Set_Host (League.Strings.To_Universal_String ("talk.google.com"));

Change History (1)

comment:1 Changed 7 years ago by maxim.reznik

If I write

  S.Set_Host (League.Strings.To_Universal_String ("173.194.70.125"));

It goes futher:

Recieved from GNUTLS.Record_Recv : 
<stream:features>
 <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <mechanism>PLAIN</mechanism>
  <mechanism>X-GOOGLE-TOKEN</mechanism>
  <mechanism>X-OAUTH2</mechanism>
 </mechanisms>
</stream:features>

Sending XML :
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>

Recieved from GNUTLS.Record_Recv : 
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><invalid-mechanism/></failure>
Last edited 7 years ago by maxim.reznik (previous) (diff)
Note: See TracTickets for help on using tickets.