Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PGSGP: Backend Token Verification – [Server-side] extension for increased security #8

Open
Star-Frog opened this issue Jul 8, 2023 · 0 comments

Comments

@Star-Frog
Copy link

I made the two following requests about a year ago in the original PGSGP, I think that such an extension or creation (of a server-side module) could be of great importance, especially for Godot-Android developers, and a great contribution to the security of the application can afford.

##############################################################

I would like to integrate token authentication on the server side for the PlayGamesServices so that only the server can make calls.
"Never trust the client" ;)

Seems to be a common practice:
https://developer.android.com/games/pgs/android/server-access

Here is a graphic (for better understanding):
https://developer.android.com/games/playgames/integrating-pgs-existing-id-solutions#restore_player_state

How can I have the token received - (on the backend) from the client - exchanged for the access token at Google Play Games Services. Is there a module for this or another solution? Thanks in advance! :)

##############################################################

GooglePlayServices (client-server model):
Does anyone know how to check my client's token on my game-server? Is there a module for Godot for this? (I also have to connect my server to "Google Play Games Services" and query the token there, right?)
🤔

Two more official links:

Official Google source about the server side (section): https://developers.google.com/games/services/android/offline-access#exchange_the_server_auth_code_for_an_access_token_on_the_server

Source of example code:
https://github.com/playgameservices/clientserverskeleton/tree/master/ServerApp/src/main/java/com/google/sample/games

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant