因此,我有一个网站,您可以使用用户名和密码登录,我希望使用该登录名,可以为converse.js生成会话尝试使用php预先绑定converse.js到openfire服务器
我一直在阅读文档和SSO支持,并以一个使用php预绑定的示例回购结束。 link
我准备了一个对象,应该是我从我的控制器调用的模型,但有一些参数我不确定它们是什么。
$xmppPrebind = new XmppPrebind('your-jabber-host.tld', 'http://your-jabber-host/http-bind/', 'Your XMPP Clients resource name', false, false);
$xmppPrebind->connect($username, $password);
$xmppPrebind->auth();
$sessionInfo = $xmppPrebind->getSessionInfo(); // array containing sid, rid and jid
XmppPrebind Constructor'Your XMPP clients resource name'的第三个参数是什么?
另外,当执行连接功能时,参数$ username和$ password ...是我从我的登录表单(在我的网站上获得的)或者openfire服务器上的一些有效用户密码对获得的那个?