Bug #378
SASL authentication DIGEST-MD5 failed: not-authorized:
Added by Anonymous almost 13 years ago.
Updated almost 13 years ago.
Description
Using BEEM - Android XMPP, when try to connect to chat.facebook.com at port 5222 with user name xxxx@chat.facebook.com gives exception.
12-12 15:02:09.086: ERROR/XMPPConnectionAdapter(4925): Error while connecting
12-12 15:02:09.086: ERROR/XMPPConnectionAdapter(4925): SASL authentication DIGEST-MD5 failed: not-authorized:
12-12 15:02:09.086: ERROR/XMPPConnectionAdapter(4925): at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:337)
12-12 15:02:09.086: ERROR/XMPPConnectionAdapter(4925): at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:230)
12-12 15:02:09.086: ERROR/XMPPConnectionAdapter(4925): at com.beem.project.beem.service.XmppConnectionAdapter.login(XmppConnectionAdapter.java:242)
12-12 15:02:09.086: ERROR/XMPPConnectionAdapter(4925): at com.beem.project.beem.service.LoginAsyncTask.doInBackground(LoginAsyncTask.java:100)
12-12 15:02:09.086: ERROR/XMPPConnectionAdapter(4925): at com.beem.project.beem.service.LoginAsyncTask.doInBackground(LoginAsyncTask.java:1)
Files
I don't remember if Facebook use the entire jid as username. Can you try again using the 'use the entire jid' option in the advanced settings ? If it doesn't work activate the smack debugger and send us the log.
I have tried to enable the JID from settings but the exception remains. I have enabled the XMPP Debug to YES, but cannot find where the log file is generated. I am running BEEM Project in Android emulator. Can you guide me where I can find the log file when in emulator.
Regards,
Naveed
The log is available under logcat. The tag SMACK is used and show every xmpp packet sent and received.
I have activated the Smack debugger option and filtered the log of emulator by word SMACK. The log is attached.
- Status changed from New to Feedback
I just completed the FAQ page to add informations on how to login with your facebook account. Can you please give it a try and if it doesn't work send the SMACK log again ?
In the beep.log file, I can see that you use the full JID to authenticate which is bad for facebook.
Note that you must have a facebook username to login with Beem
I have used Facebook username to login with Beem and it now Login successfully.
Thank you for helping me out in this problem.
Regards,
Naveed
- Status changed from Feedback to Closed
Also available in: Atom
PDF