Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2085)

Issue 1523041: inject anonymous token via gadgets.config + shindig.auth in container mode

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by Paul Lindner
Modified:
13 years, 10 months ago
Reviewers:
shindig.remailer, mhermanto, fargo
Visibility:
Public.

Description

this is a first pass at adding an anonymous container token to the container javascript output. Doing this I realized a few things: * gadgets.config code for shindig.auth is broken. (requests shindig.auth when feature is named core.auth) * We should probably make a GadgetConfigContributor class that can dynamically change this via code. Could be implemented as a map Multibinding of feature->contributorclass

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
features/src/main/javascript/features/container/feature.xml View 1 chunk +1 line, -0 lines 0 comments Download
M java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java View 5 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 4
Paul Lindner
curious if this approach is the correct way to go...
13 years, 11 months ago (2010-06-03 19:27:05 UTC) #1
fargo
Just reviewing the concept, so I'll comment here. On Fri, Jun 4, 2010 at 12:57 ...
13 years, 10 months ago (2010-06-07 12:11:43 UTC) #2
Paul Lindner
> > Description: >> this is a first pass at adding an anonymous container token ...
13 years, 10 months ago (2010-06-07 21:55:23 UTC) #3
fargo
13 years, 10 months ago (2010-06-08 10:23:06 UTC) #4
Ah yes, funky but worthwhile. I like the multibinder idea for this.

On Tue, Jun 8, 2010 at 3:25 AM, Paul Lindner <lindner@inuus.com> wrote:

> Description:
>>> this is a first pass at adding an anonymous container token to the
>>> container javascript output.
>>>
>>
>> So this is for what purpose exactly? The token is typically just used by
>> the gadget (gadgets.io.makeRequest, opensocial.* calls).
>>
>
> When using the common-container you need to make a json-rpc call.  This
> will provide a default security token to use for that call.
>
>
>
>>
>>> Doing this I realized a few things:
>>>
>>> * gadgets.config code for shindig.auth is broken.  (requests
>>> shindig.auth when feature is named core.auth)
>>>
>>
>> Seems like a pretty obvious fix on this one.
>>
>
> Yes, fixing.
>
> * We should probably make a GadgetConfigContributor class that can
>>> dynamically change this via code.  Could be implemented as a map
>>> Multibinding of feature->contributorclass
>>>
>>
>> You and your multibinders. Map is certainly better than Set! :) There are
>> still ordering issues when you have multiple contributors, but I could live
>> with this.
>>
>>
> Ordering will be the same as the feature ordering which sorts based on
> javascript dependency ordering.
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b