Hi,
I've managed to get this to work for Google App Engine by specifying
"ah" for the service parameter, for example :
GoogleLoginServiceHelper.getCredentials(this,
54321,
null,
GoogleLoginServiceConstants.REQUIRE_GOOGLE,
"ah",
false);
This also requires permission:
com.google.android.googleapps.permission.GOOGLE_AUTH.ah
I don't like having to use undocumented API's, but I suppose it's
better than the alternative of having the user to enter their username
and password.
Charlie
On 10 Sep, 07:24, kostmo <[email protected]>> wrote:
been investigating whether GoogleLoginService can subsan substitute
> fo
tLogin (seehttp://code//code.goog/apis/accounts/docs/
AuthForInstalledApps.html)
> on Google App Engine.
>
> To use ClientLogin, I solicit the usehe usernameassword from theom the u
in a dialog and exchange them on the Google server (https://
www.google.com/accounts/ClientLogin) for a 203-character string called
> "Auth". This "Auth" string can can be exchanxchafor a cookie on the
> application server (http://myapp.appspot.com/_ah/login?auth=...). The
> "Value" of this obtained cookie is a 460-character string. The cookie
> can be used from then on to maintain the user session.
>
> I was able to obtain the "authtoken", aka "SID", using the
> Ge
> GooglnService method described ibed in this threade "authtoken"
> obtained through this meis method happened to be 203 characters.
>
> I was hoping that the "authtoken" might be substituted for the the "Aut
string in the ClientLogin procerocethus bypassing the the need toicit
> the username/password. Sadly, this appears nrs not t the case.
> ClientLogin returns a "500" Server Error ror rather tthe "204" I
> usually get with a good login.
>
> So unless anyone out there is ais awto the contrary, my conclusion is
> that you must prompt the user for their password if you want an
> authenticated App Engine session.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---