Very interesting discussion! Thanks everybody for the precious info. Did anyone manage to get BlockingHelper to work? (or, to put it differently: is there any way to do this without the need for an activity that receives the result?)
On Oct 12, 7:27 pm, kostmo <kos...@gmail.com> wrote: > It seems I was the victim of an edge case. I had not done a factory > reset of my ADP1 since Android 1.1. It works now! :) > > Karl > > On Oct 12, 1:13 am, kostmo <kos...@gmail.com> wrote: > > > > > It seems tantalizingly close, but I still can't get the > > GoogleLoginService method to work with Google App Engine (GAE). > > > I'll start with a review of the method that currently works for me. > > Let's say that "<myapp>" is my GAE application name and "<authstring>" > > is the 203-character string I get from ClientLogin. > > > After using the user/pass prompt and traditional ClientLogin method, I > > can examine the cookie retrieved via curl: > > curl -c cookies.txt http://<myapp>.appspot.com/_ah/login?auth=<authstring> > > This command dumps HTML to the terminal and saves the cookie to > > "cookies.txt". The HTML sates that the status code is "302", > > but in actuality the HTTP status code is "204". Anyway, these are > > characteristics of the cookie exchange working *properly*. > > The URL can be used repeatedly to get the cookie (although I don't > > know how long it stays valid). > > > Now let me describe how I attempt to accomplish the same with > > GoogleLoginServiceHelper. I am using the method described originally > > by Sujay where he iterates through the methods in the > > GoogleLoginServiceHelper class. I look for the the "getCredentials" > > method that has the correct name and argument types and call it as > > follows: > > m.invoke( > > null, // This extra argument pertains to the "invoke" method. > > this, > > 12345, // onActivityResult code > > null, > > true, // value of the GoogleLoginServiceConstants.REQUIRE_GOOGLE > > constant > > "ah", // This is the service parameter that supposedly works with > > GAE > > false); > > > In my Manifest file, I have > > <uses-permission > > android:name="com.google.android.googleapps.permission.GOOGLE_AUTH"></ > > uses-permission> > > in addition to > > <uses-permission > > android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.ah"></ > > uses-permission> > > . > > > The intent passed to onActivityResult has 3 string fields: > > "callerExtras", "authtoken" (the value of the > > GoogleLoginServiceConstants.AUTHTOKEN_KEY constant), and > > "authAccount". > > I encounter the same response as before, however: when substituting > > the "authtoken" value for <authstring> in the > > above curl command, the result is 500 Server error. > > > I am determined to get this to work! Is there possibly some > > configuration I'm missing on the App Engine side? > > > Karl -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en