Network/user/tutorials/firebase-user-install

User Service and Firebase Integration
This is a quick primer on how to integrate Firebase with the User Service. Firebase will route all authentication and player query calls synchronously to the User Service over HTTP.

Prerequisites:


 * A Firebase installation
 * A running User-Service

Install & Configure Firebase Service
com.cubeia.network.userservice.base-url=http://localhost:8080/user-service-rest/rest
 * Download the firebase-user-service.xxx.sar.
 * Copy the .sar to $FIREBASE_HOME$/game/deploy.
 * Configure the URL to call. Edit $FIREBASE_HOME$/conf/cluster.props, add the following property with the correct value(s):

Test

 * Start Firebase by running the start script in $FIREBASE_HOME
 * Connect a client to Firebase and login using a created user in the user service. If you do not have a client you can use this one.

Troubleshooting

 * Look in $FIREBASE_HOME/logs/server.log for info on where Firebase will connect to user service.
 * If you do not enter a property in the cluster.props it will try to connect to 'http://userservice:8080/user-service'.
 * Check the logs of the webserver or the accesslogs to see if the call reaches the webserver
 * Remember that operatorId needs to be matched for a successful login.