OpenFire + Converse.js匿名登录为false,身份验证失败

时间:2014-10-09 07:38:39

标签: openfire converse.js

我在Windows中安装了OpenFire和Apache,并创建了两个用户us1& us2在OpenFire中。我在OpenFire中禁用了匿名登录。用户可以从Pidgin(XMAPP客户端)登录。现在我尝试从Converse.js登录,在UI中获得有线响应。

这是Converse初始化



    require(['converse'], function (converse) {
        converse.initialize({
            allow_otr: true,
            auto_list_rooms: false,
            auto_subscribe: false,
            bosh_service_url: 'http://localhost/httpbind/', // Please use this connection manager only for testing purposes
            hide_muc_server: false,
            i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported
            play_sounds: true,
            prebind: false,
            show_controlbox_by_default: true,
            roster_groups: true
        });
    });




当我点击登录时,我看到两个请求转到服务器



<body rid='3144306786' xmlns='http://jabber.org/protocol/httpbind' to='us1' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>
&#13;
&#13;
&#13; 和响应是
&#13;
&#13;
<body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams" from="pgi-satishb" authid="655df560" sid="655df560" secure="true" requests="2" inactivity="30" polling="5" wait="60" hold="1" ack="3144306786" maxpause="300" ver="1.6"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features></body>
&#13;
&#13;
&#13; 下一个请求是

&#13;
&#13;
<body rid='3144306787' xmlns='http://jabber.org/protocol/httpbind' sid='655df560' type='terminate'/>
&#13;
&#13;
&#13; 回复

&#13;
&#13;
<body xmlns="http://jabber.org/protocol/httpbind" type="terminate"></body>
&#13;
&#13;
&#13;

现在我在黑暗中,不知道该怎么做。

1 个答案:

答案 0 :(得分:0)

Nothing Helped从https://github.com/jcbrand/converse.js/archive/master.zip下载最新代码 这解决了问题