Perhaps your authentication token was expired.

In the android app, call .invalidateAuthToken(account.type, authToken)
on AccountManager class.
This releases the current authentication token. Then call again getAuthToken
to obtain a new and fresh authentication token.

A note: AFAIK Android uses ClientLogin and not OAuth.
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html


   Fabrizio


On Fri, Feb 4, 2011 at 11:57 PM, Sky <[email protected]>wrote:

> Hi all,
>
> I am using the oauth authentication process to authenticate Android to
> App Engine described in Nick's blog:
>
> http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app
>
> This worked fine until today. Today the authentication on app engine
> fails -> boolean authenticated = userServiceManager.isUserLoggedIn();
> returns always false.
>
> Is anyone out there using the same authentication process and has the
> same problem?
> Are there any changes concerning the URL the cookie is fetched?
> HttpGet http_get = new HttpGet("https://yourapp.appspot.com/_ah/login?
> continue=http://localhost/&auth=<https://yourapp.appspot.com/_ah/login?continue=http://localhost/&auth=>"
> + tokens[0]);
>
>
> thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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/google-appengine-java?hl=en.

Reply via email to