使用Facebook等来自Android客户端登录的Openfire服务器 [英] Use Facebook etc. to Login to Openfire Server from Android Client

查看:237
本文介绍了使用Facebook等来自Android客户端登录的Openfire服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个Android应用程序,将有一个聊天功能。我打算使用的Openfire作为服务器,并在自定义数据库管理其他用户的数据。我想有用户能够登录到我的服务器与他们的Facebook或GTALK等账户,不存在我的Openfire服务器上创建过一个单独的帐户。我知道海怪能够让目前的用户连接到其他XMPP服务器的其他帐户。

I am creating an Android app that will have a chat function. I plan to use openfire as the server and to manage other user data in the custom database. I would like to have users be able to login to my server with their facebook or gtalk etc. account without ever creating a separate account on my openfire server. I know about Kraken being able to allow current users to connect to additional accounts on other xmpp servers.

另一种选择是直接从客户端连接到其他服务,但后来我将无法跟踪和从我的中央数据中心轻松地管理这些连接。我将不得不作出额外的传输到数据传送回我的服务器上。这也可能会导致冲突,因为聊天功能应该只与我的应用程序的其他用户,而不是那些不属于我的应用程序的用户进行通信。

Another option would be to connect to those other services directly from the client, but then I wouldn't be able to track and manage those connections as easily from my central data center. I would have to make additional transmissions to transfer that data back to my servers. It might also cause conflicts because the chat function should only be communicating with other users of my app and not those that aren't users of my app.

TIA任何帮助,您可以提供。这是我必须克服之前,我可以开始擦亮我的所有应用程序的其他部分的一个初始版本的最后一个主要障碍。

TIA for any help you can provide. This is the last major hurdle that I have to overcome before I can start to polish all of the other pieces of my app for an initial release.


我有一个外部数据库。我不能只是使用一些PHP和SQL直接编辑数据库中输入新用户?我还以为我可以允许一个人登录到Facebook或其他一些服务,然后从该服务请求信息给它进入的Openfire数据库,如果它不存在。

I have an external database. Couldn't I just use some PHP and SQL to edit the database directly to input new users? I have also thought that I could allow a person to login to facebook or some other service and then request information from that service to enter it into the Openfire database if it doesn't already exist.

推荐答案

您可以使用的用户服务插件到Openfire的服务器上创建用户,但是这不会是安全的,因为客户需要更高的插件秘密做到这一点。

You can use the User Service plugin to create users on the Openfire server, but this won't be secure as the client requires the plugin secret to do this.

这将是您的应用程序使用一个单独的认证服务器更好;它的职能之一是通过这个插件创建的Openfire服务器上的用户。

It would be better for your app to use a separate authentication server; one of its functions would be to create users on the Openfire server via this plugin.

这篇关于使用Facebook等来自Android客户端登录的Openfire服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆