AuthSub token has wrong scope

327 views
Skip to first unread message

Devang Parekh

unread,
Apr 28, 2009, 5:23:49 AM4/28/09
to Google Contacts API
I am getting following message when trying to access googleContacts
using authSub token. Everything was running smoothly before 5-6 hours.
This message is coming from last 2-3 hours continuously. AuthSub token
which i have saved before this issue, is still working correctly. but
googleAccount with new authSub token shows below response.

<HEAD>
<TITLE>Token invalid - AuthSub token has wrong scope</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Token invalid - AuthSub token has wrong scope</H1>
<H2>Error 401</H2>
</BODY>
</HTML>


Anyone have idea about this??

Benjamin Golub

unread,
Apr 28, 2009, 6:55:08 AM4/28/09
to Google Contacts API
I am getting this error too as of this morning. Everything was working
fine last night.

Y

unread,
Apr 28, 2009, 8:08:54 AM4/28/09
to Google Contacts API
I have this problem too. Everything was fine yesterday. Now I am
getting hundreds of errors. IS there any way to escalate this issue to
google?

bartjo!

unread,
Apr 28, 2009, 11:09:36 AM4/28/09
to Google Contacts API
We are experiencing the same behavior for suers that want to set up a
connection for Soocial.com

we'd love for this to be fixed soon.

Nicholas

unread,
Apr 28, 2009, 11:14:02 AM4/28/09
to Google Contacts API
Just registering my $0.02. Experiencing the same thing here. My
service has been running flawlessly for months and now my users are
getting [401]: Token invalid - AuthSub token has wrong scope. This is
happening for Google Calendar as well. Nothing has changed on my end
in months.

I'm digging through requests and responses but finding nothing. Any
insights greatly appreciated!

Thanks,
Nicholas


Julian (Google)

unread,
Apr 28, 2009, 11:19:17 AM4/28/09
to Google Contacts API
Hi,

I apologize for any inconvenience. I was also able to reproduce the
error and we are investigating the issue.

I will post back as soon as I have any news.

Thanks,
Julian.
Message has been deleted

Jordan Brough

unread,
Apr 28, 2009, 11:19:45 AM4/28/09
to Google Contacts API
We are seeing this also on our production, staging and development
enviroments (different domains for each).

We are actually seeing this for both Contact and Photo retrieval, and
the code for those two areas actually use 2 significantly different
code bases so I'm pretty sure that either 1) Google has changed
something or 2) Google APIs are having some problems right now. Which
is it?

Has anyone seen a thread for this on a larger scale? (e.g., not just
contacts?)

Devang Parekh

unread,
Apr 28, 2009, 11:24:20 AM4/28/09
to google-co...@googlegroups.com
If emergency then Try with OAuth token for temporary(token which is available by providing userName & p/w).
because my one googleCalendar is running correctly by this token. This problem may
happen for new users only. In my service, old users have no such complaints.

thebrandon

unread,
Apr 28, 2009, 1:58:48 PM4/28/09
to Google Contacts API
phew...im glad my code didnt 'just break' I hope someone will post
when it gets fixed :)

Y

unread,
Apr 28, 2009, 3:30:25 PM4/28/09
to Google Contacts API
Devang,

Do you have a code sample for this approach? Preferably python?.

Thanks

On Apr 28, 11:24 am, Devang Parekh <devangsofte...@gmail.com> wrote:
> If emergency then Try with OAuth token for temporary(token which is
> available by providing userName & p/w).
> because my one googleCalendar is running correctly by this token. This
> problem may
> happen for new users only. In my service, old users have no such complaints.
>

Benjamin Golub

unread,
Apr 28, 2009, 5:21:16 PM4/28/09
to Google Contacts API

Jordan Brough

unread,
Apr 28, 2009, 7:09:59 PM4/28/09
to Google Contacts API
Thanks, working for us again now.

Julian (Google)

unread,
Apr 29, 2009, 4:13:17 AM4/29/09
to Google Contacts API
Hi,

Thank your for your patience, the issue was fixed few hours ago,
please let me know if there is any other problem.

--Julian

bryan

unread,
Apr 29, 2009, 10:51:06 AM4/29/09
to Google Contacts API
I am still having trouble with this. AuthSub hasn't been working for
me since Monday, and none of the code on my end has changed. I'm
requesting a one time use token and exchanging it for a session token
using the Java api. After I do that, I get an AuthenticationException
saying "Invalid session token".

Any ideas?

– Bryan

bryan

unread,
Apr 29, 2009, 10:52:34 AM4/29/09
to Google Contacts API
By the way, I'm accessing the Spreadsheets API (or trying to) after
authenticating.

– Bryan

Julian (Google)

unread,
May 1, 2009, 5:54:44 AM5/1/09
to Google Contacts API
Hi Bryan,

If you have tokens that are not working properly, because of the
temporary issue, you may need to obtain newer ones. Also, if there is
a token that cannot be revoke programmaticaly, those can revoke
manually using the following page:
https://www.google.com/accounts/IssuedAuthSubTokens

You may also find more specific information on the Spreadsheets API
group:
http://groups.google.com/group/Google-Docs-Data-APIs

Cheers,
Julian

bryan

unread,
May 1, 2009, 8:35:07 AM5/1/09
to Google Contacts API
Hi Julian,

Thanks for the quick response. I've revoked the token manually, but
the next time I request a token, something strange happens: Each time
I click "Grant Access" on the Google page, it redirects to my site,
throws an AuthenticationException, then redirects back to the Google
auth page. This happens indefinitely.

Any ideas?

Thanks!
Bryan
Message has been deleted

javadev123

unread,
Jun 12, 2011, 2:24:47 PM6/12/11
to google-co...@googlegroups.com
I have a 3rd party application and I have been trying to integrate it with Google using 2 legged oauth so that my application can retrieve the contact and calendar records from google users. Unfortunately, I have been stuck with the error "401 Token invalid - Invalid AuthSub token". At this point, I am ready to pay someone with the expertise to help me resolve this problem. Please email me at tagxta...@gmail.com if you can offer assistance.

Alain Vongsouvanh

unread,
Jun 13, 2011, 12:29:28 PM6/13/11
to google-co...@googlegroups.com
Please stop spamming our forums and use the original topic for this discussion!

Best,
Alain

On Sun, Jun 12, 2011 at 11:24 AM, javadev123 <tagxta...@gmail.com> wrote:
I have a 3rd party application and I have been trying to integrate it with Google using 2 legged oauth so that my application can retrieve the contact and calendar records from google users. Unfortunately, I have been stuck with the error "401 Token invalid - Invalid AuthSub token". At this point, I am ready to pay someone with the expertise to help me resolve this problem. Please email me at tagxta...@gmail.com if you can offer assistance.

--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
google-co...@googlegroups.com
To unsubscribe from this group, send email to
google-contacts...@googlegroups.com
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html



--
Alain Vongsouvanh



Reply all
Reply to author
Forward
0 new messages