Google Reader Authentication Issue

The Google Reader API It seems today something else is expected for authentication!

About a week ago, I downloaded this one and everything works, and I'm trying to pass it to java. For my code, it works fine (using your examples) until today. I am dropping all the tracing and I found out that all of a sudden the Google reader does not accept only the SID as a cookie. And of course, I test and run your sample application, and it does not work.

Then I went to break Google Reader data, and I delete all cookies except the SID, and it does not work (well this gives 401, just like my application and your sample); I tested again, and I found that now I need another cookie called HSID, which, when compared to the SID (which is more than 100 words), is about 10-20 words. Does anyone know where we can get this extra HSID?

PS I can do HTTPS for authentication, and Google returns me three tokens (SID, LSID, AUTH). But nowhere can I guess what HSID is.

+5
source share
6 answers

I have done it. Yes, the link provided by sfa is correct. But the format is too confusing. This is how I do it.

  • https://www.google.com/accounts/ClientLogin .
  • : . SID . LSID . Auth
  • Auth - . SID LSID ( , )
  • : : value: GoogleLogin auth = { } ( java)

    HttpGet = HttpGet (CommandUrl + QueryString); method.addHeader( "", "GoogleLogin auth =" + Auth);

. sfa .

+10

GoogleLogin auth = xxx. :

, : , https://www.google.com/accounts/ClientLogin Auth = . , Reader. HTTP- . : : GoogleLogin auth = [ ClientLogin]

, ! . .

+3
+1
+1

https://www.google.com/accounts/ServiceLoginAuth , hsid!

, google reader api hsid.

i use firebug can see hsid in setCookie response field

0
source

4 steps described by xandy work, thanks.

This is my implementation of xandy steps in .NET: http://sandrinodimattia.net/blog/post/Consuming-Google-(Reader)-with-NET-Part-1-Authentication.aspx

0
source

All Articles