Re: [appengine-java] GAE Authentication Broken

2011-07-11 Thread Daniel Werner
Could someone tell me how this was resolved (if it was)?  I'm running into 
the exact same problem here.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ELrT0lGOAYsJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] GAE Authentication Broken

2011-04-25 Thread Fabrizio Accatino
In your first piece of code you used https.  So you need to get the "secure"
auth cookie from app engine (SACSID).  IMHO

My codes. It manages both cookies.
http://fhtino.blogspot.com/2011/02/connet-android-app-to-google-app-engine.html


   fabrizio



On Mon, Apr 25, 2011 at 12:22 PM, Konstantin Weitz <
konstantin.we...@googlemail.com> wrote:

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

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] GAE Authentication Broken

2011-04-25 Thread Konstantin Weitz
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 <
konstantin.we...@googlemail.com> 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 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 <
>> konstantin.we...@googlemail.com> 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 http://code.google.com/appengine/community.html";>report
>>> your problem and mention this error message and the query that caused
>>> it.
>>>
>>> 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
>>> google-appengine-java@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com.
>>> 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
>> google-appengine-java@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> 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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] GAE Authentication Broken

2011-04-25 Thread Konstantin Weitz
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  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 <
> konstantin.we...@googlemail.com> 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 http://code.google.com/appengine/community.html";>report
>> your problem and mention this error message and the query that caused
>> it.
>>
>> 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
>> google-appengine-java@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> 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
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> 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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] GAE Authentication Broken

2011-04-24 Thread Fabrizio Accatino
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 <
konstantin.we...@googlemail.com> 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 http://code.google.com/appengine/community.html";>report
> your problem and mention this error message and the query that caused
> it.
>
> 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
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> 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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] GAE Authentication Broken

2011-04-24 Thread Konstantin Weitz
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 http://code.google.com/appengine/community.html";>report
your problem and mention this error message and the query that caused
it.

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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.