You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Nicola Ghirardi <gh...@gmail.com> on 2010/02/17 02:59:07 UTC

testing opensocial client against socialsite, please help.

In order to test socialsite rest api i need to set in the client the
CONSUMER_SECRET and CONSUMER_KEY.
I know in Shindig i would have to install an oauth-provider. In
socialsite it seems to be implemented in
com.sun.socialsite.web.rest.opensocialoauth.
Where can i set CONSUMER_SECRET and CONSUMER_KEY?
I found oauth.json file (empty) under
socialsite/web/src/main/resources/config but i don't know how to fill
it.

In socialsite log i found this, but it seems to be about gadget
permission, not rest api:

WARNING: Couldn't load OAuth signing key.  To create a key, run:
  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

Then edit gadgets.properties and add these lines:
shindig.signing.key-file=<path-to-oauthkey.pem>
shindig.signing.key-name=mykey

Should i put this line in oauth.json instead?
Thanks for the help, Nicola