AppId is whatever ID the container / site gives a gadget, module id is
which instance of the gadget it is on that page, domain is your
socialnetwork.com... So all your assumptions are indeed correct :)
Shindig in it's self does use some of those values, for instance when
a gadget wants to save some application data or create an activity,
the app id in the security token is used to record which app this data
belongs too .. a crucial bit of information in that case :) Also the
owner and viewer id's that are encoded in the token are heavily used
as you can imagine.
Other fields can either be used by the container in it's data services
(that you plug into shindig to couple it to your data layer), or will
be used in the future (the proxy service should know which
configuration to use, and for that it needs the domain key), so it's
in your best interest to make sure you fill them in correctly so you
don't get unexpected surprises down the road :)
-- Chris
On Jul 9, 2008, at 12:14 PM, tuhin.barua wrote:
>
> Thanks... it works :)
>
> I have another question for you, not so very important i guess
>
> $token = new BasicSecurityToken(null, null, $owner, $viewer, $app,
> $domain, $appUrl, $moduleId);
> i do this to generate ST token....
>
> Can you tell me here whats the use of $app, $domain, $appUrl,
> $moduleid ? it also dont restrict anything. i tried with some junk
> values...and still all works fine.
> I dont see much use of these parameters. can you give me an example?
> anyway the way i understand, i guess it should be something like ----
> eg: lets say its orkut opensocial
> $app = orkut application id ??
> $domain = www.orkut.com
> $appUrl = http://somedomain/myapp.xml
> $moduleid = whats this now?
>
> here appUrl supposed to be unique? and it shd point to one particular
> appid right?
> so whats the use of moduleid? is it something like if someone add same
> app twice so in tht case appid will be same in both instance but
> moduleid will be different?
> i am not sure... i am just guessing
>
> On Jun 27, 2:40 pm, Chris Chabot <[EMAIL PROTECTED]> wrote:
>> Yep works for me, keep in mind that this is a container feature, and
>> not a 'shindig' feature.
>>
>> What you need to do is create some javascript for your container
>> site,
>> that registers 'i can handle the requestNagivateTo rpc, with this
>> function', seehttp://partuza.us.chabotc.com/js/container.jsfor
>> example.
>>
>> Also when your setting up your server, and you support more then the
>> 'profile' and 'canvas' view, don't forget to edit your shindig/
>> config/
>> container.js, and add your other view(s) to the "views" section (for
>> instance partuza supports the home view so i added:
>> "home" : {
>> "isOnlyVisible" : false,
>> "aliases": []
>> },
>>
>> to views.
>>
>> ps i did double check by whiping up a quick navigate
>> gadget:http://chabotc.com/navigate.xml
>> when i add that to my site, and click the navigate links, it's
>> working fine and dandy for me
>>
>> -- Chris
>>
>> On Jun 27, 2008, at 10:21 AM, tuhin.barua wrote:
>>
>>
>>
>>> hey chris
>>
>>> is this working currently in php server?
>>
>>> this is my app javascript which works in orkut
>>
>>> function nav(view,data){
>>> var supported_views = gadgets.views.getSupportedViews();
>>> d={
>>> q: data
>>> }
>>> gadgets.views.requestNavigateTo(supported_views[view],d);
>>> }
>>
>>> here view = 'canvas' and data is appdata
>>> ir orkut i call this function from profile view... and then it gets
>>> redirected to application canvas view with app params.... which
>>> works
>>> fine
>>> but in my php server its not working.... i can see rpc_relay.html
>>> getting called asynchronously in the firebug when i call this
>>> function
>>> same like orkut....
>>
>>> - Tuhin
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Implementing OpenSocial Containers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-container?hl=en
-~----------~----~----~----~------~----~------~--~---