在 openfire 中注册新用户?
无论如何,是否可以在 OpenFire 中通过 HTTP 请求注册新用户。 我希望用户能够在用 cocoa 编写的应用程序中注册我的消息服务。 这可以吗?
Is there anyway to register new users through an HTTP request in OpenFire. I want users to be able to sign up for my messaging service from within an app written in cocoa. Can this be done??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
查看 Web 管理控制台的创建用户页面 (
http://:/user-create.php
)。 它使用简单的 HTTP GET 表单来创建新用户。 我想您可以从该页面的源中提取提交 URL 和各种必填字段,并从您的 Cocoa 应用程序构建您自己的 GET 请求。Take a look at the web administration console's create-a-user page (
http://<openfire-server>:<port>/user-create.php
). It uses a simple HTTP GET form to create a new user. I imagine you could pull the submit URL and various required fields from the source of that page and build your own GET request from your Cocoa app.在 Openfire 中注册新用户的最简单方法是 UserService 插件。 只需看一下 http://www.igniterealtime.org/projects/ openfire/plugins/userservice/readme.html
The easiest way to register a new user in Openfire is the UserService plugin. Just take a look at http://www.igniterealtime.org/projects/openfire/plugins/userservice/readme.html
您可以使用 openfire 管理控制台中提供的可用用户服务插件,选择插件选项卡,选择可用插件,然后单击绿色 + 按钮安装用户服务插件; 其次,进入服务器选项卡 -> 服务器设置页面,并确保启用用户服务插件
希望这可以帮助其他人~~~~~~~~~~
you can use the available user service plugin which is available in openfire admin console, choose the plugin tab, choose available plugin and click the green + button to install user service plugin; second, go to the server tab ->server setting page, and make sure you enable the user service plugin
hope this can help the others~~~~~~~~~~
您可以在 openfire 中使用 REST API 插件
转到插件,然后转到可用插件,然后添加 REST API 插件,然后转到帮助页面或
https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html
您将获得所有其余 API 在 openfire 中执行操作
You can use rest API plugin in openfire
Go to plugin then go to available plugin then add rest API plugin then go to help page or
https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html
You'll get all the rest API to perform operation in openfire
您可以使用 XEP-77 中指定的带内注册从您将需要 XMPP 连接。
You can use in-band registration as specified in XEP-77 to add accounts from the XMPP connection you're going to need.
在 openfire 服务器中查找 http-bind
http://localhost:9090/http-bind.jsp
我使用 strope js 客户端库与我的 Rails Web 项目配合得很好,所以我想你也可以使用你自己的 xmpp 库在你的 cocoa 项目中实现它
lookup about http-bind in your openfire server
http://localhost:9090/http-bind.jsp
I use strope js client lib work with my rails web project well, so I guess you can also use your own xmpp lib to realize it in your cocoa project