Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Authentication to Reader with OAuth now available.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 46 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
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
 
Brad Hawkes  
View profile  
 More options Mar 22 2010, 9:57 pm
From: Brad Hawkes <bhaw...@google.com>
Date: Mon, 22 Mar 2010 18:57:14 -0700
Local: Mon, Mar 22 2010 9:57 pm
Subject: Authentication to Reader with OAuth now available.

Hello friends,

It was asked in a previous thread if we could provide OAuth capabilities for
accessing Reader data. We recently enabled OAuth support for Reader. You can
find relevant information here:
http://code.google.com/apis/accounts/docs/OAuthForInstalledApps.html

You can request within a scope of http://www.google.com/reader/api/*

Hope this helps. If you have questions I'll try and help if I can.

-Brad Hawkes


 
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.
Jayesh Salvi  
View profile  
 More options Mar 22 2010, 10:56 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Tue, 23 Mar 2010 08:26:01 +0530
Local: Mon, Mar 22 2010 10:56 pm
Subject: Re: Authentication to Reader with OAuth now available.

--
Jayesh

On Tue, Mar 23, 2010 at 7:27 AM, Brad Hawkes <bhaw...@google.com> wrote:
> Hello friends,

> It was asked in a previous thread if we could provide OAuth capabilities
> for accessing Reader data. We recently enabled OAuth support for Reader. You
> can find relevant information here:
> http://code.google.com/apis/accounts/docs/OAuthForInstalledApps.html

Awesome. If this works, it will be the best solution to get user logged in
w/o username/password.

> You can request within a scope of http://www.google.com/reader/api/*

Won't it work for

http://www.google.com/reader/atom/user/-/state/*
http://www.google.com/reader/atom/user/-/label/*
http://www.google.com/reader/atom/feed/*
http://www.google.com/reader/subscriptions/export

Thanks a lot.


 
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.
Brad Hawkes  
View profile  
 More options Mar 22 2010, 11:05 pm
From: Brad Hawkes <bhaw...@google.com>
Date: Mon, 22 Mar 2010 20:05:22 -0700
Local: Mon, Mar 22 2010 11:05 pm
Subject: Re: Authentication to Reader with OAuth now available.

It will work for reader/atom/* . It doesn't however work for
subscriptions/export . If this is a problem I can see about getting it
added.


 
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.
Jayesh Salvi  
View profile  
 More options Mar 22 2010, 11:09 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Tue, 23 Mar 2010 08:39:07 +0530
Local: Mon, Mar 22 2010 11:09 pm
Subject: Re: Authentication to Reader with OAuth now available.

--
Jayesh

On Tue, Mar 23, 2010 at 8:35 AM, Brad Hawkes <bhaw...@google.com> wrote:
> It will work for reader/atom/* . It doesn't however work for
> subscriptions/export . If this is a problem I can see about getting it
> added.

It will be great if it would work for subscriptions/export, I think many
clients use OPML export.

I will try to test the new OAuth later today.

Thanks for quick reply.


 
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.
Jayesh Salvi  
View profile  
 More options Mar 24 2010, 12:37 am
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Wed, 24 Mar 2010 10:07:32 +0530
Local: Wed, Mar 24 2010 12:37 am
Subject: Re: Authentication to Reader with OAuth now available.

Ok, I got the OAuth working with Google Reader (at least for subscription
list).

Here is example code:
http://pastebin.com/VbusAELq

It uses SignPost for OAuth. It's generic java code run from desktop, but can
be used for Android with some modifications.

I am yet to test all calls to make sure they work with OAuth, but this is a
good start.

Brad, could you enable OAuth on subscriptions/export request? My android app
(ReaderScope) uses it to download OPML data.

Also, one question to Google Reader team. Is the OAuth support an experiment
or can I start using it in real world and deploy it in my app? (I know
GReader API is not official, but I just want to make sure that OAuth  won't
go away all of a sudden)

Thanks again for the OAuth support.
--
Jayesh


 
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.
Brad Hawkes  
View profile  
 More options Mar 25 2010, 2:51 pm
From: Brad Hawkes <bhaw...@google.com>
Date: Thu, 25 Mar 2010 11:51:56 -0700
Local: Thurs, Mar 25 2010 2:51 pm
Subject: Re: Authentication to Reader with OAuth now available.

I have enabled OAuth on the subscription export so you should be able to use
that as well now.

I can't say definitively what Google is going to do with respect to auth
systems, however OAuth is not experimental, I fully expect its support to
outlast ClientLogin. We actually prefer OAuth to ClientLogin now so that
users don't have to provide Google credentials to third party applications.

-Brad


 
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.
Jayesh Salvi  
View profile  
 More options Mar 27 2010, 1:11 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Sat, 27 Mar 2010 22:41:29 +0530
Local: Sat, Mar 27 2010 1:11 pm
Subject: Re: Authentication to Reader with OAuth now available.

Hi Brad,

With OAuth I can successfully make http://www.google.com/reader/api calls.
But the calls to http://www.google.com/reader/atom/feed fail.

In the example code I posted earlier (http://pastebin.com/VbusAELq), if I
change the URL at line 96 to
"
http://www.google.com/reader/atom/feed/http%3A%2F%2Ffeeds2.feedburner...
"
(This is one of the feeds I am subscribed to.)

I get "302 Moved Temporarily" in response. Any idea what's going wrong?

Do I need to expand the "scope" while asking for OAuth tokens? if it's
possible that is.

Let me know.
Thanks
--
Jayesh


 
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.
Jayesh Salvi  
View profile  
 More options Mar 27 2010, 1:23 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Sat, 27 Mar 2010 22:53:00 +0530
Subject: Re: Authentication to Reader with OAuth now available.

> Do I need to expand the "scope" while asking for OAuth tokens? if it's
> possible that is.

This indeed did the trick. I changed scope to: "
http://www.google.com/reader/api%20http://www.google.com/reader/atom". Got
new oauth tokens and the feed returned successfully.


 
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.
Jayesh Salvi  
View profile  
 More options Mar 27 2010, 11:57 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Sun, 28 Mar 2010 09:27:05 +0530
Local: Sat, Mar 27 2010 11:57 pm
Subject: Re: Authentication to Reader with OAuth now available.
Hi Brad,
Now I am stuck on edit-tags, it is returning 401 Unauthorized with OAuth.

I am making a request to  http://www.google.com/reader/api/0/edit-tag
It is strange, because before calling this I need to get token from
http://www.google.com/reader/api/0/token which I get successfully.

Are you sure you have enabled OAuth on edit-tag requests?
Thanks.
--
Jayesh


 
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.
Jayesh Salvi  
View profile  
 More options Mar 29 2010, 2:48 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Tue, 30 Mar 2010 00:18:40 +0530
Local: Mon, Mar 29 2010 2:48 pm
Subject: Re: Authentication to Reader with OAuth now available.
Hi Brad,

I think I have tested all the endpoints so far and except for the two
all others are working.

The failing ones are edit-tags and subscriptions/export.

Calls on http://www.google.com/reader/api/0/edit-tag fail with 401 Unauthorized

Calls on http://www.google.com/reader/subscriptions/export fail with
some unknown error. I get HTTP response code -1.

Please let me know if you find something wrong about these end points
on google reader side.
--
Jayesh


 
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.
Jayesh Salvi  
View profile  
 More options Mar 30 2010, 9:47 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Wed, 31 Mar 2010 07:17:37 +0530
Local: Tues, Mar 30 2010 9:47 pm
Subject: Re: Authentication to Reader with OAuth now available.
ping! any news on this one?

Thanks.
--
Jayesh


 
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.
Mihai Parparita  
View profile  
 More options Mar 30 2010, 10:42 pm
From: Mihai Parparita <mih...@google.com>
Date: Tue, 30 Mar 2010 22:42:57 -0400
Local: Tues, Mar 30 2010 10:42 pm
Subject: Re: Authentication to Reader with OAuth now available.

Is it all POST requests that fail, or just those to edit-tag?

Mihai


 
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.
Jayesh Salvi  
View profile  
 More options Mar 30 2010, 10:57 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Wed, 31 Mar 2010 08:27:18 +0530
Local: Tues, Mar 30 2010 10:57 pm
Subject: Re: Authentication to Reader with OAuth now available.
I checked again. It seems it IS failing for many POST requests, except for one.

The POST requests to "api/0/stream/items/contents" are successful.

But POST requests to "api/0/item/edit", "api/0/mark-all-as-read",
"api/0/edit-tag" fail.
--
Jayesh


 
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.
Mihai Parparita  
View profile  
 More options Mar 30 2010, 10:59 pm
From: Mihai Parparita <mih...@google.com>
Date: Tue, 30 Mar 2010 22:59:52 -0400
Local: Tues, Mar 30 2010 10:59 pm
Subject: Re: Authentication to Reader with OAuth now available.

Are you providing the T action token? That's still required even with OAuth.

Mihai

On Tue, Mar 30, 2010 at 10:57 PM, Jayesh Salvi <jayeshsa...@gmail.com>wrote:


 
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.
Jayesh Salvi  
View profile  
 More options Mar 30 2010, 11:02 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Wed, 31 Mar 2010 08:32:41 +0530
Local: Tues, Mar 30 2010 11:02 pm
Subject: Re: Authentication to Reader with OAuth now available.
--
Jayesh

On Wed, Mar 31, 2010 at 8:29 AM, Mihai Parparita <mih...@google.com> wrote:
> Are you providing the T action token? That's still required even with OAuth.

Yes I am doing that. My code is unchanged except for OAuth signing at
lower level, so I am adding POST params just like before, including
the Token.


 
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.
Brad Hawkes  
View profile  
 More options Mar 31 2010, 1:50 pm
From: Brad Hawkes <bhaw...@google.com>
Date: Wed, 31 Mar 2010 10:50:01 -0700
Local: Wed, Mar 31 2010 1:50 pm
Subject: Re: Authentication to Reader with OAuth now available.

Jayesh,
OAuth is supported by our authentication library natively. I just enabled it
on the various paths mentioned including edit-tag . It would probably be
good to verify that you are correctly encoding the POST variables  into the
OAuth base signature string.

-Brad


 
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.
Jayesh Salvi  
View profile  
 More options Mar 31 2010, 2:34 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Thu, 1 Apr 2010 00:04:32 +0530
Local: Wed, Mar 31 2010 2:34 pm
Subject: Re: Authentication to Reader with OAuth now available.

On Wed, Mar 31, 2010 at 11:20 PM, Brad Hawkes <bhaw...@google.com> wrote:
> Jayesh,
> OAuth is supported by our authentication library natively. I just enabled it
> on the various paths mentioned including edit-tag .

Could you tell me which client library did you use to test (if it is
publicly available)? I can recheck my code against it.
I am using SignPost, which apparently seems to be a standard OAuth
library, but I will check.


 
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.
Jayesh Salvi  
View profile  
 More options Apr 1 2010, 2:52 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Fri, 2 Apr 2010 00:22:30 +0530
Local: Thurs, Apr 1 2010 2:52 pm
Subject: Re: Authentication to Reader with OAuth now available.
Hi guys,

I tried all I could think of, but no help.

I analysed the java SignPost library I was using and dumped the  post
params/ signature base string etc. But couldn't find anything useful.

I also tried couple of python libraries to get more sample points, but
couldn't get those libraries beyond getRequestToken. They all are well
tested for Twitter, but can't seem to handle the "scope" post param
required for Google oauth.

IIRC, you guys can lookup the requests in server logs based on User
Agent strings. Do you think you can tell me if you find something
there? I ran the test that marks an item read about 5-10 min ago, with
the SOURCE http header set to "ReaderScope 1.8.5x". I got
401-Unauthorized for an edit-tag method invocation. Can Google Reader
log tell what in particular went wrong in that request? There should
be only one request with that SOURCE field, so it should be easily
searchable provided it is kept in logs.

It's difficult at the client side, because there are many things that
can go wrong in signing the OAuth request properly. It doesn't help
that server returns same error code for all of those errors (401).

Let me know if you can help or have any more suggestions.

Thanks.
--
Jayesh

...

read more »


 
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.
Brad Hawkes  
View profile  
 More options Apr 1 2010, 4:28 pm
From: Brad Hawkes <bhaw...@google.com>
Date: Thu, 1 Apr 2010 13:28:18 -0700
Local: Thurs, Apr 1 2010 4:28 pm
Subject: Re: Authentication to Reader with OAuth now available.

Hi Jayesh,

I looked up your request and it was indeed an error due to an invalid
signature.

I think the problem you are having is a known issue with SignPost. From
http://code.google.com/p/oauth-signpost/wiki/GettingStarted :

When using HttpURLConnection, you cannot sign POST requests that carry query
parameters in the message payload (i.e. requests of type
application/x-www-form-urlencoded). This is not a limitation of Signpost per
se, but with the way URLConnection works. Server communication with
URLConnection is based on data streams, which means that whenever you write
something to the connection, it will be sent to the server immediately. This
data is not buffered, and there is simply no way for Signpost to inspect
that data and include it in a signature. Hence, when you have to sign
requests which contain parameters in their body, you have to use an HTTP
library like Apache Commons HttpComponents and the respective Signpost
module. (This restriction does not apply to requests which send binary data
such as documents or files, because that data won't become part of the
signature anyway.)

-Brad

...

read more »


 
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.
Jayesh Salvi  
View profile  
 More options Apr 1 2010, 10:18 pm
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Fri, 2 Apr 2010 07:48:24 +0530
Local: Thurs, Apr 1 2010 10:18 pm
Subject: Re: Authentication to Reader with OAuth now available.
--
Jayesh

Thanks a bunch Brad. That seems to explain it. I will try the
suggestions later today and report what I find.

...

read more »


 
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.
Jayesh Salvi  
View profile  
 More options Apr 3 2010, 2:27 am
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Sat, 3 Apr 2010 11:57:20 +0530
Local: Sat, Apr 3 2010 2:27 am
Subject: Re: Authentication to Reader with OAuth now available.
I got most of the calls working (including some POST queries) with
apache http library and SignPost. But I am still getting error with
OPML query. It's a simple GET query on
www.google.com/reader/subscriptions/export, but it fails with 401
Client error and I get following warning somewhere inside the
http/signpost library:

Authentication error: Unable to respond to any of these challenges:
{oauth=WWW-Authenticate: OAuth
realm="https://www.google.com/accounts/OAuthGetRequestToken",
service="reader"}

I am not sure why the error talks about GetRequestToken. I already
have access token and secret, which work perfect for other queries.

I also tried to expand the scope by adding
www.google.com/reader/subscriptions to it, but that gives an error.

Any idea?
--
Jayesh

...

read more »


 
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.
Jayesh Salvi  
View profile  
 More options Apr 4 2010, 1:00 am
From: Jayesh Salvi <jayeshsa...@gmail.com>
Date: Sun, 4 Apr 2010 10:30:40 +0530
Local: Sun, Apr 4 2010 1:00 am
Subject: Re: Authentication to Reader with OAuth now available.
Some more investigation on OPML query failure.

The exact request-response details are:

Request:
------------
GET http://www.google.com/reader/subscriptions/export HTTP/1.1
Authorization : OAuth
oauth_token="1%2FQFKEFjVe0KE8mrPy6zpJA2ty9VceETm-b9xJXKiyMoM",
oauth_consumer_key="<myconsumerkey>", oauth_version="1.0",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1270356512",
oauth_nonce="2173450765791751214",
oauth_signature="8lQAxDhVrA0JQ%2FXbe92Gu2hOdbI%3D"

Response:
--------------
HTTP/1.1 401 Unauthorized
Content-Type : text/html; charset=UTF-8
WWW-Authenticate : OAuth
realm="https://www.google.com/accounts/OAuthGetRequestToken",
service="reader"
Date : Sun, 04 Apr 2010 04:44:50 GMT
Expires : Sun, 04 Apr 2010 04:44:50 GMT
Cache-Control : private, max-age=0
X-Content-Type-Options : nosniff
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
Content-Length : 1334
Server : GSE

Now I am making other GET requests which are returning success. So I
dumped their request headers and verified that they look the same as
the above request.

I looked into the following RFC about the 401 response generated by
the server and the meaning of "WWW-authenticate: OAuth realm"
http://tools.ietf.org/html/rfc2617#section-1.2

As I understand it from the RFC, the server is challenging the client
to provide OAuth credentials. But as you see, I am providing them in
the request. So my best guess on this is that even though OAuth might
be enabled on subscriptions/export, it does not fall into the same
space as other requests. That is why it is in a way prompting the
client to do OAuth authentication by suggesting the
OAuthGetRequestToken URL (first step in OAuth authentication process).

Does this make sense?

Please let me know. Thanks.
--
Jayesh

...

read more »


 
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.
Brad Hawkes  
View profile  
 More options Apr 7 2010, 2:30 pm
From: Brad Hawkes <bhaw...@google.com>
Date: Wed, 7 Apr 2010 11:30:34 -0700
Local: Wed, Apr 7 2010 2:30 pm
Subject: Re: Authentication to Reader with OAuth now available.

Yes I believe you have to authenticate for the different scopes separately.

-Brad

...

read more »


 
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.
Dima  
View profile  
 More options Apr 15 2010, 8:18 pm
From: Dima <ddbrod...@gmail.com>
Date: Thu, 15 Apr 2010 17:18:22 -0700 (PDT)
Local: Thurs, Apr 15 2010 8:18 pm
Subject: Re: Authentication to Reader with OAuth now available.
Hi,

I am having an issue accessing subscription lists via oauth.  I get
and verify all the tokens, a call to:

http://www.google.com/reader/api/0/token

succeeds

but when I call:

http://www.google.com/reader/api/0/subscription/list?output=json

I get a 401 response.

My scope is: http://www.google.com/reader/api.  One thing that is not
too clear to me is once I get a token from http://www.google.com/reader/api/0/token
do I stick it in a cookie header as before, or do I have to do
something else?

Thanks!
ttyl
Dima

On Apr 7, 11:30 am, Brad Hawkes <bhaw...@google.com> wrote:

...

read more »


 
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.
curt  
View profile  
 More options Apr 26 2010, 12:24 am
From: curt <curtis.wens...@gmail.com>
Date: Sun, 25 Apr 2010 21:24:58 -0700 (PDT)
Local: Mon, Apr 26 2010 12:24 am
Subject: Re: Authentication to Reader with OAuth now available.
Hi, it's great you now have OAuth support!

However, it doesn't seem to work for:

http://www.google.com/reader/api/0/preference/stream/set
http://www.google.com/reader/api/0/subscription/edit
http://www.google.com/reader/api/0/disable-tag

My code used to use SID authentication, and was unchanged other than
removing the SID from the post and adding the authentication.

I'm using the GData objective c oauth provider:
http://code.google.com/p/gdata-objectivec-client/wiki/OAuthSignInCont...
and signing my requests with [auth authorizeRequest:myRequest]

Is there something else I need to change to get this to work, or must
I use ClientLogin to do these?

Thanks for any help!
Curtis.

On Mar 22, 6:57 pm, Brad Hawkes <bhaw...@google.com> wrote:

> Hello friends,

> It was asked in a previous thread if we could provide OAuth capabilities for
> accessing Reader data. We recently enabled OAuth support for Reader. You can
> find relevant information here:http://code.google.com/apis/accounts/docs/OAuthForInstalledApps.html

> You can request within a scope ofhttp://www.google.com/reader/api/*

> Hope this helps. If you have questions I'll try and help if I can.

> -Brad Hawkes

--
Subscription settings: http://groups.google.com/group/fougrapi/subscribe?hl=en

 
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.
Messages 1 - 25 of 46   Newer >
« Back to Discussions « Newer topic     Older topic »