Google Groups Home
Help | Sign in
specify OAuth for the viewer or the owner, in gadgets.io.makeRequest
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
  21 messages - Collapse all
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
humbroll  
View profile
 More options May 16, 6:53 am
From: humbroll <humbr...@gmail.com>
Date: Fri, 16 May 2008 03:53:58 -0700 (PDT)
Local: Fri, May 16 2008 6:53 am
Subject: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest
I want to let gadgets specify whether to use OAuth(access_token) for
the owner or  the viewer
Let's say i want to imlement a gadget that a viewer centric. and,
assume that

G : Gadget showing contents from a service provider that support
Oauth.
O : The owner of G
V :  A viewer of G

if V goes to O's profile with G. viewer should see V's contents. But
it is not clear that a gadget users acces_token of

V according to Opensocial 0.8.

It will be better to be able to specify usering a viewer’s access
token when gadget.io.makeRequest is invoked.

Thanks for your feedback in advance.


    Reply to author    Forward  
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.
Brian Eaton  
View profile
 More options May 16, 10:56 am
From: "Brian Eaton" <bea...@google.com>
Date: Fri, 16 May 2008 07:56:29 -0700
Local: Fri, May 16 2008 10:56 am
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest
Currently only the owners access token can be used.  The enhancement
you propose sounds like a great idea.  Can you add some additional
detail?

- what are the new parameters to makeRequest, and how are they
interpreted by the server?
- how should the gadget rendering server decide whether a particular
user is allowed to use an OAuth access token issued to another user?


    Reply to author    Forward  
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.
humbroll  
View profile
 More options May 20, 7:07 am
From: humbroll <humbr...@gmail.com>
Date: Tue, 20 May 2008 04:07:11 -0700 (PDT)
Local: Tues, May 20 2008 7:07 am
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest
> - what are the new parameters to makeRequest,

gadgets.io.RequestParameters.OAUTH_USER  =
opensocial.DataRequest.PersonId.VIEWER |
opensocial.DataRequest.PersonId.OWNER
( specify in http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial....)

>and how are they interpreted by the server?

Container proxy will interpret OAUTH_USER. and make an oauth request
to service provider with an access_token of either V or O.

> - how should the gadget rendering server decide whether a particular
> user is allowed to use an OAuth access token issued to another user?

i think it is matter of gadget implementation.
If makeRequest is invoked with V's access_token, there is no problem.
because V just does oauth authentication according to opensocial
specification.
however if makeRequest is invoked with O’s access_token, there is some
problem.
In this case, if V views O's profile, G has to behave according to
availability(meaning that exist and valid) of O’s access_token.
if the access_token is available, V can use gadget. otherwise, G is
unavailable to V.

thanks.:)


    Reply to author    Forward  
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.
Brian Eaton  
View profile
 More options May 20, 2:59 pm
From: "Brian Eaton" <bea...@google.com>
Date: Tue, 20 May 2008 11:59:07 -0700
Local: Tues, May 20 2008 2:59 pm
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest

On Tue, May 20, 2008 at 4:07 AM, humbroll <humbr...@gmail.com> wrote:
>> - how should the gadget rendering server decide whether a particular
>> user is allowed to use an OAuth access token issued to another user?
> i think it is matter of gadget implementation.
> If makeRequest is invoked with V's access_token, there is no problem.
> because V just does oauth authentication according to opensocial
> specification.

Let me see if I understand: both the viewer's and the owner's access
tokens would be available to the gadget.

That's not backwards compatible with what we have today, where only
the owner's access token is ever used.  If someone has written a
gadget that (for security reasons) depends on the viewers token not
being usable, that gadget would become insecure by virtue of this
change.

In general I'm suspicious of changes that are not backwards compatible.

Cheers,
Brian


    Reply to author    Forward  
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.
humbroll  
View profile
 More options May 20, 9:56 pm
From: humbroll <humbr...@gmail.com>
Date: Tue, 20 May 2008 18:56:24 -0700 (PDT)
Local: Tues, May 20 2008 9:56 pm
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest
Of course, using owners token is DEFAULT even viewer's access token
would be available.
And specifing "gadgets.io.RequestParameters.OAUTH_USER" is OPTIONAL.
That's backwards compitable i think.

Thanks for your feedback in advance.

On May 21, 3:59 am, "Brian Eaton" <bea...@google.com> wrote:


    Reply to author    Forward  
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.
Ropu  
View profile
 More options May 20, 10:55 pm
From: Ropu <rovagn...@gmail.com>
Date: Tue, 20 May 2008 23:55:47 -0300
Local: Tues, May 20 2008 10:55 pm
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest

And this scenario?

if V and O have the access_token

And V has Read Write, but O has only Read access with its role (viewer or
owner) in the app.

how can you differenciate V acting as O and vice versa?

I think is possible to spoof a request using O access_token and make it Read
Write. Unless u have 2 token for each User, one acting as V and other as O.

Is this possible? or i completely missed the point?

Ropu

--
.-. --- .--. ..-
R o p u

    Reply to author    Forward  
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.
Brian Eaton  
View profile
 More options May 21, 12:39 pm
From: "Brian Eaton" <bea...@google.com>
Date: Wed, 21 May 2008 09:39:41 -0700
Local: Wed, May 21 2008 12:39 pm
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest
OAuth has no mechanism for describing a token as "read/write" or "read
only".  That's entirely up to the service provider.  The gadget server
(i.e. the OAuth proxy) cannot differentiate.


    Reply    Reply to author    Forward  
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.
Ropu  
View profile
(1 user)  More options May 21, 12:53 pm
From: Ropu <rovagn...@gmail.com>
Date: Wed, 21 May 2008 13:53:46 -0300
Local: Wed, May 21 2008 12:53 pm
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest

when i say read or read/write is in the logic of the gadget.

and since aouth connot differentiate (except having 2 different tokens) we
can have the security issue i described.

ropu

--
.-. --- .--. ..-
R o p u

    Reply    Reply to author    Forward  
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.
Brian Eaton  
View profile
 More options May 21, 12:55 pm
From: "Brian Eaton" <bea...@google.com>
Date: Wed, 21 May 2008 09:55:17 -0700
Local: Wed, May 21 2008 12:55 pm
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest
That security issue can't be solved in the gadget, or in the OAuth
proxy.  The service provider has to be able to issue tokens with
appropriate powers.


    Reply    Reply to author    Forward  
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.
Reinoud Elhorst  
View profile
 More options May 21, 12:59 pm
From: "Reinoud Elhorst" <rein...@hyves.nl>
Date: Wed, 21 May 2008 18:59:40 +0200
Local: Wed, May 21 2008 12:59 pm
Subject: Re: specify OAuth for the viewer or the owner, in gadgets.io.makeRequest

I'm not sure how the viewer's access token being usable to the gadget can be
a security risk. When the gadget is not designed to use the viewer's token,
the only one who can take advantage of the token being exposed is the
viewer. So the viewer can control his own access token, which seems fine,
doesn't it?

(alternatively he can install the gadget on his own profile, and be the
owner and that way have access to the same token)


    Reply    Reply to author    Forward