On Tue, Aug 28, 2012 at 1:53 PM, William Ferguson
<[email protected]> wrote:
>
> On Tuesday, August 28, 2012 11:10:41 AM UTC+10, Nikolay Elenkov wrote:
>>
>
>>
>> If you are authenticating to App Engine you can use
>> the Users to get the current account as well.
>
>
> I *will* be authenticating to AppEngine, but to do so via a web service you
> need to pass that auth along with the http request, which means you need to
> gather it on the Android device first, which leads back to the top. Or did I
> miss something?
>

Right. You can either get only the email (Google account) from AccountManager
or use the email to get an authentication token for a Google service,
such as GAE.
(this needs yet more permissions). If you pass the auth token, the GAE User
service can extract the identity from it so you don't need to pass identity info
separately. The tricky part here is that the authentication that
currently works
(ClientLogin with the 'ah' service name) is currently deprecated, and
the library
to get the new-style (OAuth2) token has not yet been released (Google Play
Services). That said, it should work fine with ClientLogin for now (deprecation
period is 1 year).

-- 
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