Use Facebook, etc. To login to Openfire Server from Android Client

I am creating an Android application that will have a chat function. I am planning to use openfire as a server and manage other user data in a user database. I would like users to be able to connect to my server using their facebook account or gtalk etc. without even creating a separate account on my openfire server. I know Kraken can allow current users to connect to additional accounts on other xmpp servers.

Another option would be to connect to these other services directly from the client, but then I would not be able to easily monitor and manage these connections from my datacenter. I will need to make additional transfers to transfer this data to my servers. This can also cause conflicts because the chat function should only interact with other users of my application, not those who are not users of my application.

TIA for any help you can provide. This is the last major hurdle I need to overcome before I can start polishing all the other parts of my app for initial release.

[EDIT] I have an external database. Can't I just use some PHP and SQL to edit the database directly for new user input? I also thought that I could allow a person to log into 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.

+3


source to share


1 answer


You can use the User Service plugin to create users on the Openfire server, but this will not be secure as the client needs the secret plugin to do this.



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

+2


source







All Articles