android - Control flow for validating user requests with Oauth2 and Google Play in a PHP server? -
i managed implement google play services api in cordova app (game). game sends google play services player id server when person connects.
i making scheme validates user's permissions , sends them info (an image server) if permissions check out. so, have player id, isn't plenty validate are.
i don't understand how utilize oauth2 validate user are.
stop me when go off track:
presumably, need one-time token them validate with, eh, "something", , run php validation function token , "something" validate are.
i'm not sure how request token without having google play services create authorization window within app, or code of is. saw oauth 2 things in php positively gigantic things. i'm looking can explain how can validate user , couple of lines of code implementing it.
ok, think figured out. basic concept...
1) user asks access token google play services player api. (requires authorization dialog)
2) user sends access token server.
3) server sends access token google play player api.
4) if successful, server authenticates user.
https://developers.google.com/games/services/web/api/players/get
edit: above applies http only. unfortunately, far can tell, there no built-in android / google play mechanism authorization code, access token.
php android cordova oauth google-play-services
No comments:
Post a Comment