In shindigoauth.xml you seem to be missing a / on the <Access> part. It should be http:// instead of http:/ so maybe that's related. I was just experimenting with 2 legged OAuth myself and I got it working using the sample implementation that uses oauth info from content/sampledata/canonicaldb.json. I'm not sure if that's also relevant for your case but you might want to check that out.
On Tue, Oct 12, 2010 at 9:35 PM, Christine Bauers <[email protected]> wrote: > Hi shindig users, > > I´m trying to use the android demo app of the open social java client to > connect to Shindig. > > I ´ve deployed the shindig.war on a server. To do this, I´ve named it > ROOT.war and I deleted the ROOT dir.This works. Now I want to open a > connection via the demo app to make some restful calls. To do this, I use > the MyShindigProvider class which extends org.opensocial.providers.Provider > to set the urls: > > setName("shindig"); > setVersion("0.8"); > setRestEndpoint("http://server:8081/social/rest/"); > setAuthorizeUrl("http://server:8081/oauth/authorize"); > setAccessTokenUrl("http://server:8081/oauth/accessToken"); > setRequestTokenUrl("http://server:8081/oauth/requestToken"); > if (!useRest) { > setRpcEndpoint("http://192.168.1.138:8081/social/rpc/"); > } > addRequestTokenParameter("scope", getRequestTokenUrl() + " " > +getRpcEndpoint()); > I got these urls from the shindigoauth.xml in samplecontainer/example.Are > these urls correct? Do I maybe have to use https for authorization? And if, > what are the correct urls then? > > addProvider(new MyShindigProvider(), new String[] > {"http://server:8081/samplecontainer/examples/shindigoauth.xml", > "secret"}); > > I got these consumer key and consumer secret from the oauth.json. Are these > Parameters right or is there another consumer key? > > After this I´ve set the scheme in friendlistclass > setScheme("http://server:8081/gadgets/oauthcallback") to set the callback > url and edited the shindigoauth.xml: > > <Service name="shindig"> > <Request url="http://server:8081/oauth/requestToken" /> > <Authorization > url="http://server:8081/oauth/authorize?oauth_callback=http://server:8081/gadgets/oauthcallback" > /> > <Access url="http:/server:8081/oauth/accessToken" /> > </Service> > > Now I get an OAuthException, because I can´t get any requestToken. . What > did I forget? > > Greetings > Christine Bauers >
