I am writing a project in Google App Engine,  GAE and  need to authenticate 
from Android 

On the GAE server in a servlet  I use
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
  This prints the current user, and shows I am authenticated

To achieve this, I used the Client Login method, as described in this 
excellent blog

http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app

This works, and I can call servlets  on my Google App Engine server
The servlets know who I am,   hence the Android device is authenticated, 
and Servlet code in Google App engine knows who 
the current user is.

However,  Client Login, is now officially ,deprecated    see
https://developers.google.com/accounts/docs/AuthForInstalledApps

and they recommend switching to OAuth 
2.0<https://developers.google.com/accounts/docs/OAuth2#IA>
, 
But, I read else where, that OAuth 
2.0<https://developers.google.com/accounts/docs/OAuth2#IA>, 
 is not supported by Google App Engine

Questions
1. What is the recommended method for Authenticating Android with Google 
App Engine ?
2. Is there  example code to do this anywhere  (ideally a rework of the 
example 
http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app,
 
would be ideal)
When is  OAuth 2.0 <https://developers.google.com/accounts/docs/OAuth2#IA>, 
  available on Google App Engine  ?

It seems existing methods are marked as deprecated ,  before the new 
methods are ready.

Please help.  thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to