Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Stale Android auth token means no HTTP 401
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ubikdroid  
View profile  
 More options Mar 19 2010, 2:50 am
From: ubikdroid <markst3v...@googlemail.com>
Date: Thu, 18 Mar 2010 23:50:56 -0700 (PDT)
Local: Fri, Mar 19 2010 2:50 am
Subject: Re: Stale Android auth token means no HTTP 401
Hi Mihai,
Thanks for clarifying. My app hits:

https://www.google.com/reader/api/0/unread-count?output=json

On Mar 19, 2:10 am, Mihai Parparita <mih...@google.com> wrote:

> Which URL were you requesting that you got redirected to the login page?
> Generally, /api/0/ URLs should result in a 401, while other URLs (which are
> user-visible) will result in a 302 to the login page.

> Mihai

> On Thu, Mar 18, 2010 at 6:03 PM, ubikdroid <markst3v...@googlemail.com>wrote:

> > Hi friends,
> > I just noticed that the Google Reader widget on my Nexus One's home
> > screen was not updating. I know that the auth token was due to time
> > out today, it being 2 weeks since the widget was added. I had put in
> > place code to catch HTTP 401s coming from the API but 401 was not the
> > issue. Instead it looks like the API redirected me to a web page
> > asking for my Google Reader username and password. Unfortunately, the
> > fix is not ideal as I am basically looking for some text in that page
> > and then retrieving a new auth token.

> > Also for any Android devs I had to invalidate the auth token using
> > GoogleLoginServiceBlockingHelper.invalidateAuthToken() before
> > retrieving a new auth token otherwise I was just getting the same
> > stale one.

> > Mark

> > To unsubscribe from this group, send email to fougrapi+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.