On Mon, Sep 22, 2008 at 3:01 PM, Wenjun Wu <[EMAIL PROTECTED]> wrote:
> It seems that MakeRequestHandler expects some security token from the
> gadgets.io.RequestParameters.
> Could anyone kindly point out how I can set the security token in the
> RequestParameters?
It gets inserted automatically based on the security token provided
when the gadget is rendered.
Here are instructions on how to see the oauth.xml demo gadget run.
Launch the example service provider from oauth.net:
a) svn co http://oauth.googlecode.com/svn/code/java java
b) cd java/example/oauth-provider
c) mvn jetty:run-war
Launch Shindig
Point browser at
http://localhost:8080/gadgets/files/samplecontainer/samplecontainer.html
Display gadget
http://localhost:8080/gadgets/files/samplecontainer/examples/oauth.xml.
Click "reset all", then hit the browser reload button (yet another bug
in the sample container)
At this point you *should* see a "Personalize this gadget" link.
Click it, and a popup to the oauth.net demo service provider opens.
Enter a user name there ("hello oauth!"), then click "Authorize".
The popup window closes, and your user id shows up in the oauth demo gadget