Hi, Thanks for the above. But still i'm not clear about this. According to the above I should be able to get Shindig work with OAuth using oauth.json without implementing new class. As I understood these changes are only necessary if I'm going to use Shindig to a product where oauth data are stored in DB's. Am I correct or do I need to modify shindig although using oauth.json which is already in Shindig.
On Wed, Jun 29, 2011 at 1:55 PM, Evgeny Bogdanov <[email protected]>wrote: > > To add your implementation to shindig, you can add it into > SocialApiGuiceModule.java like this > > import org.apache.shindig.social.**opensocial.oauth.**OAuthDataStore; > import org.apache.shindig.social.**sample.oauth.**SampleOAuthDataStore; > > and > > bind(OAuthDataStore.class).to(**SampleOAuthDataStore.class); > > Change SampleOAuthDataStore into your own class. > > Implement your class according to SampleOAuthDataStore.java > The sample class uses json-db, if you need a persistent data-store (like > mysql, posgres), > you have to implement it yourself. Do it similarly to > JsonDbOpensocialService. > > Hope it answers your questions > > Best > Evgeny > > > On 29.06.11 05:55, Sumedha Sanjeewa wrote: > >> Thanks Augustin and Evgeny. >> In the Java version there is a BasicOAuthStore class which implements the >> OAuthStore. So can i use that. Also please can you explain me how i should >> implement this class. (In which package,where to access the class etc) >> >> On Tue, Jun 28, 2011 at 7:32 PM, Evgeny Bogdanov<evgeny.bogdanov@epfl.** >> ch <[email protected]>>wrote: >> >> Hi >>> >>> attached is an example tutorial I wrote some time ago. It was working >>> with >>> Shindig 2.0. >>> Did not check newer versions. >>> >>> This is more a proof-of-concept that uses oauth.json file. >>> >>> If you wish a production ready implementation, you need to implement your >>> own oAuthDataStore class, >>> as Agustin wrote. >>> >>> Best >>> Evgeny >>> >>> >>> On 28.06.11 15:40, Agustin Casiva wrote: >>> >>> Hi, I don't have experience with the Java version of Shindig. But in PHP >>>> I >>>> had to implement several class to get shindig working with oauth from >>>> gadgets. The most important class was the implementation of >>>> OAuthDataStore, >>>> this class handles the Tokens requested to the service provider. >>>> >>>> I assume that in the Java version should be the same, maybe you need >>>> implement some class to make the feature work. >>>> >>>> I will try to check that and I will let you know. >>>> >>>> Regards >>>> >>>> On Tue, Jun 28, 2011 at 2:16 AM, Sumedha Sanjeewa<[email protected]> >>>> wrote: >>>> >>>> Hi, >>>> >>>>> Can someone help me >>>>> >>>>> Thanks in advance >>>>> >>>>> On Mon, Jun 27, 2011 at 5:41 PM, Sumedha Sanjeewa<[email protected]> >>>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>>> I'm new to Shindig and I want to try an OAuth gadget with Shindig. I >>>>>> followed the steps mentioned in this thread [1]. I checked out the >>>>>> >>>>>> current >>>>> >>>>> source code in the trunk >>>>>> Also I used 'mvn -Prun' to start the Jetty server from the base >>>>>> >>>>>> directory. >>>>> >>>>> Normal gadgets works fine but when i try the sample gadget given in >>>>>> the >>>>>> above thread i am getting this error. >>>>>> >>>>>> "Something went wrong: Could not fetch gadget spec ==== Original >>>>>> request: >>>>>> GET /m8/feeds/contacts/default/****base?alt=json Host: >>>>>> >>>>>> www.google.comX-Shindig-****AuthType: oauth X-Forwarded-For: >>>>> 0:0:0:0:0:0:0:1 >>>>> X-shindig-dos: on >>>>> >>>>> ====" >>>>>> >>>>>> Please can someone help me with this. >>>>>> >>>>>> [1] >>>>>> >>>>>> >>>>>> http://groups.google.com/****group/oauth/browse_thread/**<http://groups.google.com/**group/oauth/browse_thread/**> >>>>>> >>>>> thread/5dea93b44dbbb628<http:/**/groups.google.com/group/** >>>>> oauth/browse_thread/thread/**5dea93b44dbbb628<http://groups.google.com/group/oauth/browse_thread/thread/5dea93b44dbbb628> >>>>> > >>>>> >>>>> >>>>> Thanks >>>>>> -- >>>>>> Regards, >>>>>> Sumedha Kodithuwakku >>>>>> (SumedhaS) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>> Regards, >>>>> Sumedha Kodithuwakku >>>>> (SumedhaS) >>>>> >>>>> >>>>> >>>> >> -- Regards, Sumedha Kodithuwakku (SumedhaS)
