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