{"action":"created","issue":{"url":"https://api.github.com/repos/node-xmpp/node-xmpp-client/issues/137","labels_url":"https://api.github.com/repos/node-xmpp/node-xmpp-client/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/node-xmpp/node-xmpp-client/issues/137/comments","events_url":"https://api.github.com/repos/node-xmpp/node-xmpp-client/issues/137/events","html_url":"https://github.com/node-xmpp/node-xmpp-client/issues/137","id":110612059,"number":137,"title":"Node-xmpp-client digest-md5 not working","user":{"login":"rohitmanusis","id":2869134,"avatar_url":"https://avatars.githubusercontent.com/u/2869134?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitmanusis","html_url":"https://github.com/rohitmanusis","followers_url":"https://api.github.com/users/rohitmanusis/followers","following_url":"https://api.github.com/users/rohitmanusis/following{/other_user}","gists_url":"https://api.github.com/users/rohitmanusis/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitmanusis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitmanusis/subscriptions","organizations_url":"https://api.github.com/users/rohitmanusis/orgs","repos_url":"https://api.github.com/users/rohitmanusis/repos","events_url":"https://api.github.com/users/rohitmanusis/events{/privacy}","received_events_url":"https://api.github.com/users/rohitmanusis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-09T08:29:32Z","updated_at":"2015-10-09T11:57:39Z","closed_at":null,"body":"I tried to login using following code but it's not working. Error : XMPP Authentication Failure. I have installed OpenFire. Server is properly working when i tried to connect with JAVA.\r\n\r\nvar Client = require('node-xmpp-client');\r\nvar cl = new Client({\r\n  jid : \"ttest\",\r\n  password : '123456',\r\n  host :'localhost',\r\n  reconnect : true,\r\n});\r\n\r\ncl.on('online', function() {\r\n  console.log('online');\r\n});\r\n\r\ncl.on('error', function(err){\r\n  console.log('err : ', err);\r\n});\r\n\r\ncl.on('stanza', function(stanza) {\r\n    console.log('Incoming stanza: ', stanza.toString());\r\n});\r\n\r\ncl.on('connect', function() {\r\n    console.log('connnecting....');\r\n});\r\n\r\ncl.on('reconnect', function() {\r\n    console.log('reconnnecting....');\r\n});"},"comment":{"url":"https://api.github.com/repos/node-xmpp/node-xmpp-client/issues/comments/146843245","html_url":"https://github.com/node-xmpp/node-xmpp-client/issues/137#issuecomment-146843245","issue_url":"https://api.github.com/repos/node-xmpp/node-xmpp-client/issues/137","id":146843245,"user":{"login":"rohitmanusis","id":2869134,"avatar_url":"https://avatars.githubusercontent.com/u/2869134?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitmanusis","html_url":"https://github.com/rohitmanusis","followers_url":"https://api.github.com/users/rohitmanusis/followers","following_url":"https://api.github.com/users/rohitmanusis/following{/other_user}","gists_url":"https://api.github.com/users/rohitmanusis/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitmanusis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitmanusis/subscriptions","organizations_url":"https://api.github.com/users/rohitmanusis/orgs","repos_url":"https://api.github.com/users/rohitmanusis/repos","events_url":"https://api.github.com/users/rohitmanusis/events{/privacy}","received_events_url":"https://api.github.com/users/rohitmanusis/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T11:57:39Z","updated_at":"2015-10-09T11:57:39Z","body":"I checked code internally and found digest-md5 is the default mechanism.  Check this file \r\n\r\nnode-xmpp-client\\lib\\Client.js : 194 (line number)\r\n\r\nNo it's not working with preferredSaslMechanism: 'PLAIN' also.\r\n\r\n\r\n"}}