开发者

Google Auth using Token

I've an android application that needs to navigate to a google service webpage (say calendar). Because I already have a Auth Token (using Android Accounts manager), I want to skip user being redirect开发者_开发技巧ed to web login. Would auto-login be possible using authtoken ? If yes, what is the exact Url with params


you would append ?auth= to the url. I don't know if that works with all google urls, but for google voice and a couple others i've seen it work.


You need to use a cookie.

First do a GET on this URL with the auth token at the end: http://.appspot.com/_ah/login?continue=/stats&auth=

Then extract the cookie from the response and add it to the HTTP headers of all subsequent requests.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜