Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid authentication to google accounts passed on to Google App Engine
    primarykey
    data
    text
    <p>Before I dig into the details of implementing this particular design, I wanted some advice/validation on whether I was approaching it correctly. I have a beginners knowledge of Android, advanced beginner in Python, GAE, and OpenId.</p> <h2>Environment</h2> <ul> <li>Android application</li> <li>Web Services built in Python on Google App Engine</li> <li>User(s) with Google Account</li> </ul> <h2>Scenario</h2> <p>I want to enable sign-in capabilities in my Android application without writing my own authentication system in GAE. Within the app, the user should be able to play as a guest without the ability to save high scores. If a user would like to have his high scores saved, he would authenticate against his Google account on the Android device. At the end of the game, the authenticated users high score would be saved (associated with his Google Account) via the game's web services on Google App Engine. The user should also be able to sign-out and hand the device to a friend who could also log in, play a game, and save her high scores associated with her Google account.</p> <h2>Design</h2> <ol> <li>In the Android application, use OpenId for authentication whenever the user wishes to sign-in (using something along the lines of what Nick has posted <a href="http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app" rel="nofollow">here</a>. </li> <li>Grab the OpenId token from the cookie that is returned and associate it with the current user. </li> <li>Make a web service call to the GAE services adding the token as a cookie and including the high score</li> <li>The web service would authenticate that the token is valid</li> <li>The web service would determine the unique Google accounts id associated with the token (don't know how to do this, but assuming there should be a means to do this) and lookup that unique id against a cross reference table to find the users in-game id (which was previously created during account setup)</li> <li>Save the high score associated with the in-game id.</li> <li>Allow logout so another user can login to the game with their Google Account and repeat above process</li> </ol> <p>Thank you for your help</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload