I think my authentication token may just have expired.
http://stackoverflow.com/questions/1996686/authtoken-from-accountmanager-in-android-client-no-longer-working

I didn't check yet but the symptoms seem to match.
It sure would be nice if the error message I get from the server would be
more helpful.

On Mon, Apr 25, 2011 at 11:58 AM, Konstantin Weitz <
[email protected]> wrote:

> How do I specify explicitly in the url that I want a SACSID cookie?
> I tryed to modify the continue argument to be https but it didn't work
>
> continue=https://localhost/.
>
> Before my technique broke I used to get the SACSID cookie, this is how i
> checked I really did,
>
>                 for(Cookie cookie :
> http_client.getCookieStore().getCookies()) {
>
>                     Log.e("Is secure? ", cookie.isSecure()?"true":"false");
>
>                     if(cookie.getName().equals("SACSID")){
>                         Log.e("got it", "awesome");
>                         return true;
>                     }
>                 }
>
>
> but since the request now fails I don't get to this point anymore.
>
>
> On Mon, Apr 25, 2011 at 8:05 AM, Fabrizio Accatino <[email protected]>wrote:
>
>> Not sure... but since you are connecting through https,  try to get the
>> SACSID cookie instead of the ACSID.
>>
>>    fabrizio
>>
>>
>> On Sun, Apr 24, 2011 at 11:04 PM, Konstantin Weitz <
>> [email protected]> wrote:
>>
>>> Hi guys,
>>>
>>> I'm trying to authenticate at a web service, running on gae, with android
>>> as described here
>>>
>>> http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app
>>>
>>> For that reason I first get the token from the phone with the following
>>> code
>>>
>>> accountManager.getAuthToken(account, "ah", false, new
>>> GetAuthTokenCallback(), null);
>>> // ...
>>> String auth_token = bundle.getString(AccountManager.KEY_AUTHTOKEN);
>>>
>>> and i then request the following url in order to get the real
>>> authentication token
>>>
>>> "https://"+DOMAIN+"/_ah/login?continue=http://localhost/&auth="; +
>>> auth_token
>>>
>>> and i get the following error message (the code used to work just
>>> recently)
>>>
>>> The server encountered an error and could not complete your request.
>>> If the problem persists, please <A HREF="
>>> http://code.google.com/appengine/community.html";>report</A>
>>> your problem and mention this error message and the query that caused
>>> it.</h2>
>>>
>>> What is the problem? Did the api change?
>>>
>>> --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>

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