CHJani / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

AccountManager getAuthToken new issue still using same code that always worked #386

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.5.0-beta)?

Java environment (e.g. Java 6, Android 2.3, App Engine)?
Multiple Android versions: 2.2+

Describe the problem.

I am not sure where the source of this problem is but I will start by 
reaching out here.  I use oAuth2 for auth tokens to perform updates to Google 
Latitude.  I have not updated my libraries recently and am still using client 
1.4.1 from last summer.  

Problem:  on AccountManager > getAuthToken(...)   Randomly and only 
recently, I have started getting back "AccountManager.KEY_INTENT"s 
when I attempt to refresh an expired token, instead of receiving a 
valid refreshed authentication token as expected. 

Nothing has changed on my end and it only occurs randomly.  When it 
happens and is ignored, another attempt to refresh the token again, 
usually succeeds.  However, when it does fail (when the intent comes 
back instead of a token) an unfriendly Google dialog pops up prompting 
the user to enter their password.  Entering your password doesn't stop 
it from occurring in the future.  The dialog is not the result of any 
"start activity" code on my end.  It must be launching from within the 
AccountManager framework. 

For my app, I used the standard code examples that are all over the 
web to accomplish the task of getAuthToken.  It only started happening 
to users in the last week or two.  I haven't updated any Google shared 
libraries, but perhaps a required update has been implemented 
recently? 

How would you expect it to be fixed?

I just want to know if something changed that I need to address and my 
authentication ways of the past are no longer acceptable?

Original issue reported on code.google.com by gaugl...@gmail.com on 11 Jan 2012 at 6:11

GoogleCodeExporter commented 9 years ago
This is a great question, but it is not a defect in this library.  Please ask 
it on the Google Group instead:
https://groups.google.com/forum/#!forum/google-api-java-client

Original comment by yan...@google.com on 18 Jan 2012 at 12:24