Hello everyone,
I’m looking for some best practices verifying the player’s identity combined with the various GameNetwork libraries. For example, Amazon Game Circle, Google Play Games, Apple Game Center all have functions that load the current player and return a “playerID”:
gameNetwork.request("loadLocalPlayer", { listener = function (event) local playerID = event.playerID; end });
The playerID is nice because it gives me the unique identity of the player that I can use to associated information about the player on my backend. The problem is that relying on this alone does not verify the player is who they say they are, anyone could pass a “playerID” to the backend and perform whatever action they want. The quick and dirty route would require the user to signup/login, but I’d like to avoid that so the experience is seamless.
The other alternative is requesting a token from the Google Play Games (http://android-developers.blogspot.com/2013/01/verifying-back-end-calls-from-android.html) and verifying that token on the server side. Obviously, Corona does not support this API call, and I’m not aware of the equivalent API calls on other platforms.
Does anyone know another way to securely store player’s information?
Albert