Hi, Okke and I are trying to get 3 legged oAuth working in Rave but we're stuck on passing the security token from the portal to the (Shindig) container.
What we have done so far: - generated a key using openssl req -newkey rsa:1024 -days 365 -nodes -x509 -keyout testkey.pem -out testkey.pem -subj '/CN=mytestkey' openssl pkcs8 -in testkey.pem -out oauthkey.pem -topk8 -nocrypt -outform PEM - replaced the default PropertiesModule by a properties module that can read shindig properties from a different location - configured our custom shindig properties to read a different container.js in shindig.containers.default In our custom container.js we've set "gadgets.securityTokenType" : "secure", "gadgets.securityTokenKeyFile" : "/path/to/my/oauthkey.pem", #with the correct location of course - replaced CommonContainerAuthGuiceModule with a custom module that loads DefaultSecurityTokenCodec instad of CommonContainerSecurityTokenCodec - added a gadget from http://gadgets.jasha.eu/oauthtest.xml (and registered the domain in Google) - added consumer key & secret to config/oauth.json Now when I add this gadget to my page, I get a HTTP Status 401 - Malformed security token %st% Invalid security token %st% response. This makes sense because the portal doesn't pass a security token to Shindig. This could be done by generating a token like in [1], in Rave probably in OpenSocialWidgetRenderer, and then set the security token to the gadget object like in [2]. In rave_opensocial.js we don't pass the gadget as an object to the container, just its url and render params. Is there anyone who does know the right place where to handle the securityToken between the portal and container? [1] http://svn.apache.org/repos/asf/incubator/rave/donations/surfconext-portal/coin-portal/trunk/coin-portal-war/src/main/java/nl/surfnet/coin/portal/control/HomeController.java [2] http://svn.apache.org/repos/asf/incubator/rave/donations/surfconext-portal/coin-portal/trunk/coin-portal-war/src/main/webapp/js/coin/shindig/container.js Jasha Joachimsthal Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466 US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free) www.onehippo.com
