Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
can't connect to gmail using mini-client demo
Avatar
hobeau43 #1
Member since Sep 2013 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Gmail
Just what the description says. I tried to connect to gmail using the mini-client demo (winforms) and I am getting a 403 forbidden error. I set the server to 'gmail.com' and enter my '[username]@gmail.com' and password and it keeps giving me a 403. Any help? Thanks!
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please post your XML logs.

Alex
Avatar
hobeau43 #3
Member since Sep 2013 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the reply, here is the response:

  1. SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="gmail.com" version="1.0" >
  2. RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="gmail.com" id="B407D697FA7865D4" version="1.0" xmlns="jabber:client" >
  3. RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  4.  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
  5.     <required />
  6.  </starttls>
  7.  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  8.     <mechanism>X-OAUTH2</mechanism>
  9.     <mechanism>X-GOOGLE-TOKEN</mechanism>
  10.  </mechanisms>
  11. </stream:features>
  12. SEND: </stream:stream>
This post was edited on 2013-09-10, 16:44 by Alex.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Make sure that StartTls is enabled, then it should proceed and connect fine.

It looks like you have disabled TLS and it stops after the stream features.

Alex
Avatar
hobeau43 #5
Member since Sep 2013 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the reply. I checked and indeed TLS was turned off so I turned it on and I got a popup to accept a certificate, which I did. Now I'm getting the following:

  1. SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="gmail.com" version="1.0" >
  2. RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="gmail.com" id="5711E69DEBF74137" version="1.0" xmlns="jabber:client" >
  3. RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  4.  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
  5.     <required />
  6.  </starttls>
  7.  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  8.     <mechanism>X-OAUTH2</mechanism>
  9.     <mechanism>X-GOOGLE-TOKEN</mechanism>
  10.  </mechanisms>
  11. </stream:features>
  12. SEND: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  13. RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  14. SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="gmail.com" version="1.0" >
  15. RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="gmail.com" id="81AE543A32FED987" version="1.0" xmlns="jabber:client" >
  16. RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  17.  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  18.     <mechanism>X-OAUTH2</mechanism>
  19.     <mechanism>X-GOOGLE-TOKEN</mechanism>
  20.     <mechanism>PLAIN</mechanism>
  21.  </mechanisms>
  22. </stream:features>
  23. SEND: <auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">XXXXX</auth>
  24. RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  25.  <not-authorized />
  26. </failure>
  27. SEND: </stream:stream>
  28. RECV: </stream:stream>
This post was edited on 2013-09-10, 16:45 by Alex.
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You get an authentication error because you set as username hobeau@gmail.com, the username must be hobeau only, without the domain gmail.com.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: