Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
zbang.yaniv #1
Member since Mar 2011 · 29 posts
Group memberships: Members
Show profile · Link to this post
Subject: Fail to login to facebook after upgrade 1.3 -> 1.4
Hello,

Same code, in version 1.3 works perfectly well, but in 1.4 I receive not_authorized.


Thanks
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
please post or attach your XML logfiles for both version, then I can see what the difference is.

Alex
Avatar
zbang.yaniv #3
Member since Mar 2011 · 29 posts
Group memberships: Members
Show profile · Link to this post
It's clear that it decides to use MD5 in ver1.4. See attached logs.
This is the OnBeforeSasl:
       
        protected override void XmppClient_OnBeforeSasl(object sender, SaslEventArgs e)
        {
            e.Auto = false;
            e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.X_FACEBOOK_PLATFORM;

            e.SaslProperties = new Matrix.Xmpp.Sasl.Processor.Facebook.FacebookProperties
            {
                ApiKey = m_ApiKey,
                ApiSecret = m_Secret,
                SessionKey = m_SessionKey
            };
        }

1.4
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="chat.facebook.com" version="1.0" ><stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="661621AA" from="chat.facebook.com" xmlns="jabber:client" version="1.0" xml:lang="en" ><stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>X-FACEBOOK-PLATFORM</mechanism>
    <mechanism>DIGEST-MD5</mechanism>
  </mechanisms>
</stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="chat.facebook.com" version="1.0" ><stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="C71BF98D" from="chat.facebook.com" xmlns="jabber:client" version="1.0" lang="en" ><stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>X-FACEBOOK-PLATFORM</mechanism>
    <mechanism>DIGEST-MD5</mechanism>
  </mechanisms>
</stream:features><auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /><challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09ImNoYXQuZmFjZWJvb2suY29tIixub25jZT0iRkU4OUY0ODQxODBCQzA5MzhCNkY5ODMxMjk4RjRFNTgiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge><response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9IiIscmVhbG09ImNoYXQuZmFjZWJvb2suY29tIixub25jZT0iRkU4OUY0ODQxODBCQzA5MzhCNkY5ODMxMjk4RjRFNTgiLGNub25jZT0iYjQ4NDZmZDkzMmU2YTgxMjk3MjM3YjFmZTVlYzQzNWI1ZGFkMmI1N2Y3ZjA3NjYwOTAzZTI4ODJjMThjMzg3YiIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9jaGF0LmZhY2Vib29rLmNvbSIsY2hhcnNldD11dGYtOCxyZXNwb25zZT1jODJjZDA5Y2MwZDEyZmE5ZDIwZmQ2MjQ5YzFmMzEwMQ==</response><failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <not-authorized />
</failure>



1.3


<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="chat.facebook.com" version="1.0" ><stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="EFA49F55" from="chat.facebook.com" xmlns="jabber:client" version="1.0" xml:lang="en" ><stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>X-FACEBOOK-PLATFORM</mechanism>
    <mechanism>DIGEST-MD5</mechanism>
  </mechanisms>
</stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="chat.facebook.com" version="1.0" ><stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="59C76E91" from="chat.facebook.com" xmlns="jabber:client" version="1.0" lang="en" ><stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>X-FACEBOOK-PLATFORM</mechanism>
    <mechanism>DIGEST-MD5</mechanism>
  </mechanisms>
</stream:features><auth mechanism="X-FACEBOOK-PLATFORM" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /><challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dmVyc2lvbj0xJm1ldGhvZD1hdXRoLnhtcHBfbG9naW4mbm9uY2U9Mjc5NDAzNTk0RDc5MDA2QzA0RUI5MTY1MzJGMDI5MkU=</challenge><response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">bWV0aG9kPWF1dGgueG1wcF9sb2dpbiZhcGlfa2V5PTQ2N2RiNzBmNTMyNjM4ZmI2MTI2ODRkYzhhZDFkMDBiJnNlc3Npb25fa2V5PTdlZWU5OTI3NWEyODk1NmJkMWJlNmE0MS03MDc4NDQ0OTEmY2FsbF9pZD0yMDE0MDY2NDUxJnNpZz1kZDY4OTdmOWY1NDNhYzk0NDFkYjVlYTdhZTA5OTc2MiZ2PTEuMCZub25jZT0yNzk0MDM1OTRENzkwMDZDMDRFQjkxNjUzMkYwMjkyRQ==</response><success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="chat.facebook.com" version="1.0" ><stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="178288D8" from="chat.facebook.com" xmlns="jabber:client" version="1.0" lang="en" ><stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</stream:features><iq id="MX_1" type="set" xmlns="jabber:client">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <resource>MatriX</resource>
  </bind>
</iq><iq id="MX_1" type="result" xmlns="jabber:client">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <jid>-707844491@chat.facebook.com/MatriX_2c63a626_4A0A2D2FAA526</jid>
  </bind>
</iq><iq id="MX_2" type="set" xmlns="jabber:client">
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq><iq type="result" id="MX_2" xmlns="jabber:client">
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq><iq id="MX_3" type="get" xmlns="jabber:client">
  <query xmlns="jabber:iq:roster" />
</iq>
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I can confirm that there is a problem with 1.4.0.0 Changes which I made i the threading model caused this event to be non blocking.
I fixed this and created a new version 1.4.0.1 which is uploaded to:
http://www.ag-software.net/download-directory/

Can you please download the latest binary and let me know your results?

Thanks,
Alex
This post was edited on 2011-05-04, 08:02 by Alex.
Avatar
zbang.yaniv #5
Member since Mar 2011 · 29 posts
Group memberships: Members
Show profile · Link to this post
Thanks, I will run it today hopefully
Avatar
zbang.yaniv #6
Member since Mar 2011 · 29 posts
Group memberships: Members
Show profile · Link to this post
1.4.0.1 works fine,

thanks!
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:
Forum: MatriX RSS