parvezhakim / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Token invalid - AuthSub token has wrong scope #575

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the 1.8 version of the GData library, OAuth 1.0 and the contacts API 
to attempt to fetch a contact photo. I'm getting a "The remote server returned 
an error: (401) Unauthorized." with an inner exception of "Token invalid - 
AuthSub token has wrong scope. This problem started occurring fairly recently. 
It was working just fine. I troubleshooted the issue using OAuth 1.0 and 2.0 
playgrounds (2-legged). It works with OAuth 2.0, but not OAuth 1.0, so it 
appears some kind of change on the back end as broken support for retrieving 
photos from contacts. We can't use OAuth 2.0 at this time. Any chance we could 
get this fixed? If necessary, I can provide our test account creds to reproduce 
this issue. However, you should be able to easily reproduce this problem 
yourself. The feed url looks something like this:

https://www.google.com/m8/feeds/photos/media/<mailbox name>/<contact id>

Original issue reported on code.google.com by steve.wa...@gmail.com on 1 Mar 2012 at 5:07

GoogleCodeExporter commented 9 years ago
Hi Steve,

Can you update to the latest version of the library and try again?
If that doesn't solve the problem, please share your code with us.

Original comment by ccherub...@google.com on 1 Mar 2012 at 5:12

GoogleCodeExporter commented 9 years ago
It tried it with latest code and it's a problem there as well. I can't provide 
you our code, but you don't need to code to reproduce it. Just use the OAuth 
1.0 playground.

Original comment by steve.wa...@gmail.com on 1 Mar 2012 at 5:16

GoogleCodeExporter commented 9 years ago
Got it, as it is not a problem with the .NET library, please ask for support in 
the Contacts API forum:

http://code.google.com/apis/contacts/community/forum.html

Original comment by ccherub...@google.com on 1 Mar 2012 at 5:19

GoogleCodeExporter commented 9 years ago
I am still facing same problem with retrieving contact's photo.
Help me out...

Original comment by rddave2...@gmail.com on 21 Mar 2012 at 2:25