You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by daviesd <da...@oclc.org> on 2012/04/27 00:12:44 UTC
Does data-pipelining in proxied content require oauth to be
configured?
I have a developer trying to use proxied content. Their gadget looks as
follows:
<Content
href="http://localhost/some.php"
type="html"
authz="signed"
xmlns:os="http://ns.opensocial.org/2008/markup">
<os:ViewerRequest key="viewer" />
</Content>
We keep getting a 403 back from the server
WARNING: The following fatal error occurred when OAuth was fetching content:
Unable to retrieve consumer key.
Apr 26, 2012 6:04:38 PM org.apache.shindig.gadgets.render.Renderer render
INFO: The gadget at http://dl.dropbox.com/u/xxxxx/gadgets/karen_proxy.xml
did not render. The following error occurred: Unable to reach remote host.
HTTP status 403.
If we set authz to none then we get ³Must sign by viewer to request viewer².
So I¹m assuming you must turn authz on for data-pipelining to work. Does
this mean I need to configure oauth in shindig.properties? I don¹t
currently and this is probably my problem, but just checking.
doug
Re: Does data-pipelining in proxied content require oauth to be
configured?
Posted by daviesd <da...@oclc.org>.
Henry,
Thanks. I tried that and I still had trouble. However if I switch to
<os:DataRequest method="people.get" userId="@viewer"/>
Then it works without signing.
doug
On 4/27/12 2:09 PM, "Henry Saputra" <he...@gmail.com> wrote:
> I think you can workaround this by instead of using @viewer in the
> data pipeline use the actual user id instead.
>
> - Henry
>
>
Re: Does data-pipelining in proxied content require oauth to be configured?
Posted by Henry Saputra <he...@gmail.com>.
I think you can workaround this by instead of using @viewer in the
data pipeline use the actual user id instead.
- Henry
On Fri, Apr 27, 2012 at 10:56 AM, daviesd <da...@oclc.org> wrote:
> No, I do not. That's my problem. If I want to do data-pipelining it looks
> like I can't do that without signing. Argh... Ok... I think I'm stuck for
> now then.
>
>
> On 4/27/12 1:47 PM, "Henry Saputra" <he...@gmail.com> wrote:
>
>> Shindig does not store consumer key for gadgets by default so we need
>> to override the default SHindig OAuth store for it.
>>
>> Doug, I assume you have your own OAuth store/provider for your OAuth flow?
>>
>> - Henry
>>
>> On Fri, Apr 27, 2012 at 8:20 AM, daviesd <da...@oclc.org> wrote:
>>> Here's the logic in View.java
>>>
>>> ? ?if (needViewer && (!this.signViewer || this.authType == AuthType.NONE))
>>> {
>>> ? ? ?throw new SpecParserException("Must sign by viewer to request
>>> viewer.");
>>> ? ?}
>>>
>>> needsViewer is set IF data-pipelining has a userId of @viewer which
>>>
>>> <os:ViewerRequest key="viewer"/>
>>>
>>> Would be requiring.
>>>
>>> So this tells me that any data-pipelining that deals with viewer needs to be
>>> signed (or I'm missing something).
>>>
>>> If that's true, then I'm stumped on the 403 error I get back when I enable
>>> signing, because then it appears from the consumer key error that I need to
>>> have oauth enabled.
>>>
>>> doug
>>>
>>>
>>> On 4/26/12 6:35 PM, "Ryan J Baxter" <rj...@us.ibm.com> wrote:
>>>
>>>> Doug, I have not tried this in a while, but last time I did OAuth was not
>>>> required.
>>>>
>>>> -Ryan
>>>>
>>>>
>>>>
>>>>
>>>> From: ? daviesd <da...@oclc.org>
>>>> To: ? ? shindig <de...@shindig.apache.org>,
>>>> Date: ? 04/26/2012 06:13 PM
>>>> Subject: ? ? ? ?Does data-pipelining in proxied content require oauth to
>>>> be configured?
>>>>
>>>>
>>>>
>>>> I have a developer trying to use proxied content. ?Their gadget looks as
>>>> follows:
>>>>
>>>> ? ? <Content
>>>> ? ? ?href="http://localhost/some.php"
>>>> ? ? ?type="html"
>>>> ? ? ?authz="signed"
>>>> ? ? ?xmlns:os="http://ns.opensocial.org/2008/markup">
>>>> ? ? ? ? ? ?<os:ViewerRequest key="viewer" />
>>>> ? ? </Content>
>>>>
>>>> We keep getting a 403 back from the server
>>>>
>>>> WARNING: The following fatal error occurred when OAuth was fetching
>>>> content:
>>>> ?Unable to retrieve consumer key.
>>>> Apr 26, 2012 6:04:38 PM org.apache.shindig.gadgets.render.Renderer render
>>>> INFO: The gadget at http://dl.dropbox.com/u/xxxxx/gadgets/karen_proxy.xml
>>>> did not render. The following error occurred: Unable to reach remote host.
>>>> HTTP status 403.
>>>>
>>>> If we set authz to none then we get ³Must sign by viewer to request
>>>> viewer².
>>>>
>>>> So I¹m assuming you must turn authz on for data-pipelining to work. ?Does
>>>> this mean I need to configure oauth in shindig.properties? ?I don¹t
>>>> currently and this is probably my problem, but just checking.
>>>>
>>>> doug
>>>>
>>>>
>>>
>>>
>>
>
>
Re: Does data-pipelining in proxied content require oauth to be
configured?
Posted by daviesd <da...@oclc.org>.
No, I do not. That's my problem. If I want to do data-pipelining it looks
like I can't do that without signing. Argh... Ok... I think I'm stuck for
now then.
On 4/27/12 1:47 PM, "Henry Saputra" <he...@gmail.com> wrote:
> Shindig does not store consumer key for gadgets by default so we need
> to override the default SHindig OAuth store for it.
>
> Doug, I assume you have your own OAuth store/provider for your OAuth flow?
>
> - Henry
>
> On Fri, Apr 27, 2012 at 8:20 AM, daviesd <da...@oclc.org> wrote:
>> Here's the logic in View.java
>>
>> ? ?if (needViewer && (!this.signViewer || this.authType == AuthType.NONE))
>> {
>> ? ? ?throw new SpecParserException("Must sign by viewer to request
>> viewer.");
>> ? ?}
>>
>> needsViewer is set IF data-pipelining has a userId of @viewer which
>>
>> <os:ViewerRequest key="viewer"/>
>>
>> Would be requiring.
>>
>> So this tells me that any data-pipelining that deals with viewer needs to be
>> signed (or I'm missing something).
>>
>> If that's true, then I'm stumped on the 403 error I get back when I enable
>> signing, because then it appears from the consumer key error that I need to
>> have oauth enabled.
>>
>> doug
>>
>>
>> On 4/26/12 6:35 PM, "Ryan J Baxter" <rj...@us.ibm.com> wrote:
>>
>>> Doug, I have not tried this in a while, but last time I did OAuth was not
>>> required.
>>>
>>> -Ryan
>>>
>>>
>>>
>>>
>>> From: ? daviesd <da...@oclc.org>
>>> To: ? ? shindig <de...@shindig.apache.org>,
>>> Date: ? 04/26/2012 06:13 PM
>>> Subject: ? ? ? ?Does data-pipelining in proxied content require oauth to
>>> be configured?
>>>
>>>
>>>
>>> I have a developer trying to use proxied content. ?Their gadget looks as
>>> follows:
>>>
>>> ? ? <Content
>>> ? ? ?href="http://localhost/some.php"
>>> ? ? ?type="html"
>>> ? ? ?authz="signed"
>>> ? ? ?xmlns:os="http://ns.opensocial.org/2008/markup">
>>> ? ? ? ? ? ?<os:ViewerRequest key="viewer" />
>>> ? ? </Content>
>>>
>>> We keep getting a 403 back from the server
>>>
>>> WARNING: The following fatal error occurred when OAuth was fetching
>>> content:
>>> ?Unable to retrieve consumer key.
>>> Apr 26, 2012 6:04:38 PM org.apache.shindig.gadgets.render.Renderer render
>>> INFO: The gadget at http://dl.dropbox.com/u/xxxxx/gadgets/karen_proxy.xml
>>> did not render. The following error occurred: Unable to reach remote host.
>>> HTTP status 403.
>>>
>>> If we set authz to none then we get ³Must sign by viewer to request
>>> viewer².
>>>
>>> So I¹m assuming you must turn authz on for data-pipelining to work. ?Does
>>> this mean I need to configure oauth in shindig.properties? ?I don¹t
>>> currently and this is probably my problem, but just checking.
>>>
>>> doug
>>>
>>>
>>
>>
>
Re: Does data-pipelining in proxied content require oauth to be configured?
Posted by Henry Saputra <he...@gmail.com>.
Shindig does not store consumer key for gadgets by default so we need
to override the default SHindig OAuth store for it.
Doug, I assume you have your own OAuth store/provider for your OAuth flow?
- Henry
On Fri, Apr 27, 2012 at 8:20 AM, daviesd <da...@oclc.org> wrote:
> Here's the logic in View.java
>
> if (needViewer && (!this.signViewer || this.authType == AuthType.NONE))
> {
> throw new SpecParserException("Must sign by viewer to request
> viewer.");
> }
>
> needsViewer is set IF data-pipelining has a userId of @viewer which
>
> <os:ViewerRequest key="viewer"/>
>
> Would be requiring.
>
> So this tells me that any data-pipelining that deals with viewer needs to be
> signed (or I'm missing something).
>
> If that's true, then I'm stumped on the 403 error I get back when I enable
> signing, because then it appears from the consumer key error that I need to
> have oauth enabled.
>
> doug
>
>
> On 4/26/12 6:35 PM, "Ryan J Baxter" <rj...@us.ibm.com> wrote:
>
>> Doug, I have not tried this in a while, but last time I did OAuth was not
>> required.
>>
>> -Ryan
>>
>>
>>
>>
>> From: daviesd <da...@oclc.org>
>> To: shindig <de...@shindig.apache.org>,
>> Date: 04/26/2012 06:13 PM
>> Subject: Does data-pipelining in proxied content require oauth to
>> be configured?
>>
>>
>>
>> I have a developer trying to use proxied content. Their gadget looks as
>> follows:
>>
>> <Content
>> href="http://localhost/some.php"
>> type="html"
>> authz="signed"
>> xmlns:os="http://ns.opensocial.org/2008/markup">
>> <os:ViewerRequest key="viewer" />
>> </Content>
>>
>> We keep getting a 403 back from the server
>>
>> WARNING: The following fatal error occurred when OAuth was fetching
>> content:
>> Unable to retrieve consumer key.
>> Apr 26, 2012 6:04:38 PM org.apache.shindig.gadgets.render.Renderer render
>> INFO: The gadget at http://dl.dropbox.com/u/xxxxx/gadgets/karen_proxy.xml
>> did not render. The following error occurred: Unable to reach remote host.
>> HTTP status 403.
>>
>> If we set authz to none then we get ³Must sign by viewer to request
>> viewer².
>>
>> So I¹m assuming you must turn authz on for data-pipelining to work. Does
>> this mean I need to configure oauth in shindig.properties? I don¹t
>> currently and this is probably my problem, but just checking.
>>
>> doug
>>
>>
>
>
Re: Does data-pipelining in proxied content require oauth to be configured?
Posted by "Davies,Douglas" <da...@oclc.org>.
Thanks Ryan. Hmmm... So any idea what we might be doing wrong?
Doug
Sent from my iPad
On Apr 26, 2012, at 6:38 PM, "Ryan J Baxter" <rj...@us.ibm.com> wrote:
> Doug, I have not tried this in a while, but last time I did OAuth was not
> required.
>
> -Ryan
>
>
>
>
> From: daviesd <da...@oclc.org>
> To: shindig <de...@shindig.apache.org>,
> Date: 04/26/2012 06:13 PM
> Subject: Does data-pipelining in proxied content require oauth to
> be configured?
>
>
>
> I have a developer trying to use proxied content. Their gadget looks as
> follows:
>
> <Content
> href="http://localhost/some.php"
> type="html"
> authz="signed"
> xmlns:os="http://ns.opensocial.org/2008/markup">
> <os:ViewerRequest key="viewer" />
> </Content>
>
> We keep getting a 403 back from the server
>
> WARNING: The following fatal error occurred when OAuth was fetching
> content:
> Unable to retrieve consumer key.
> Apr 26, 2012 6:04:38 PM org.apache.shindig.gadgets.render.Renderer render
> INFO: The gadget at http://dl.dropbox.com/u/xxxxx/gadgets/karen_proxy.xml
> did not render. The following error occurred: Unable to reach remote host.
> HTTP status 403.
>
> If we set authz to none then we get ³Must sign by viewer to request
> viewer².
>
> So I¹m assuming you must turn authz on for data-pipelining to work. Does
> this mean I need to configure oauth in shindig.properties? I don¹t
> currently and this is probably my problem, but just checking.
>
> doug
>
>
Re: Does data-pipelining in proxied content require oauth to be
configured?
Posted by daviesd <da...@oclc.org>.
Here's the logic in View.java
if (needViewer && (!this.signViewer || this.authType == AuthType.NONE))
{
throw new SpecParserException("Must sign by viewer to request
viewer.");
}
needsViewer is set IF data-pipelining has a userId of @viewer which
<os:ViewerRequest key="viewer"/>
Would be requiring.
So this tells me that any data-pipelining that deals with viewer needs to be
signed (or I'm missing something).
If that's true, then I'm stumped on the 403 error I get back when I enable
signing, because then it appears from the consumer key error that I need to
have oauth enabled.
doug
On 4/26/12 6:35 PM, "Ryan J Baxter" <rj...@us.ibm.com> wrote:
> Doug, I have not tried this in a while, but last time I did OAuth was not
> required.
>
> -Ryan
>
>
>
>
> From: daviesd <da...@oclc.org>
> To: shindig <de...@shindig.apache.org>,
> Date: 04/26/2012 06:13 PM
> Subject: Does data-pipelining in proxied content require oauth to
> be configured?
>
>
>
> I have a developer trying to use proxied content. Their gadget looks as
> follows:
>
> <Content
> href="http://localhost/some.php"
> type="html"
> authz="signed"
> xmlns:os="http://ns.opensocial.org/2008/markup">
> <os:ViewerRequest key="viewer" />
> </Content>
>
> We keep getting a 403 back from the server
>
> WARNING: The following fatal error occurred when OAuth was fetching
> content:
> Unable to retrieve consumer key.
> Apr 26, 2012 6:04:38 PM org.apache.shindig.gadgets.render.Renderer render
> INFO: The gadget at http://dl.dropbox.com/u/xxxxx/gadgets/karen_proxy.xml
> did not render. The following error occurred: Unable to reach remote host.
> HTTP status 403.
>
> If we set authz to none then we get ³Must sign by viewer to request
> viewer².
>
> So I¹m assuming you must turn authz on for data-pipelining to work. Does
> this mean I need to configure oauth in shindig.properties? I don¹t
> currently and this is probably my problem, but just checking.
>
> doug
>
>
Re: Does data-pipelining in proxied content require oauth to be configured?
Posted by Ryan J Baxter <rj...@us.ibm.com>.
Doug, I have not tried this in a while, but last time I did OAuth was not
required.
-Ryan
From: daviesd <da...@oclc.org>
To: shindig <de...@shindig.apache.org>,
Date: 04/26/2012 06:13 PM
Subject: Does data-pipelining in proxied content require oauth to
be configured?
I have a developer trying to use proxied content. Their gadget looks as
follows:
<Content
href="http://localhost/some.php"
type="html"
authz="signed"
xmlns:os="http://ns.opensocial.org/2008/markup">
<os:ViewerRequest key="viewer" />
</Content>
We keep getting a 403 back from the server
WARNING: The following fatal error occurred when OAuth was fetching
content:
Unable to retrieve consumer key.
Apr 26, 2012 6:04:38 PM org.apache.shindig.gadgets.render.Renderer render
INFO: The gadget at http://dl.dropbox.com/u/xxxxx/gadgets/karen_proxy.xml
did not render. The following error occurred: Unable to reach remote host.
HTTP status 403.
If we set authz to none then we get ³Must sign by viewer to request
viewer².
So I¹m assuming you must turn authz on for data-pipelining to work. Does
this mean I need to configure oauth in shindig.properties? I don¹t
currently and this is probably my problem, but just checking.
doug