Thanks! I tried this. I still have question about how to implement oauth authentication between consumer and service provider. If I want to write a contact list gadget for yahoo email account or other gadgets that need to retrieve data from a service provider, how do I implement oauth request url similar to https://www.google.com/accounts/OAuthGetAccessToken, https://www.google.com/accounts/OAuthAuthorizeToken and https://www.google.com/accounts/OAuthGetRequestToken?scope=http://www.google.com/m8/feeds/
How to make the protected resource oauth supported? --- On Thu, 7/3/08, Gonzalo Aune <[EMAIL PROTECTED]> wrote: From: Gonzalo Aune <[EMAIL PROTECTED]> Subject: Re: oauth example To: [email protected] Date: Thursday, July 3, 2008, 10:46 AM Try this: http://opensocial-gaune.googlecode.com/files/contacts.xml You have to modify the oauth.json to wherever my site is, or if you want to download you have to put the location pointing to localhost. The other steps are the same as: http://groups.google.com/group/oauth/browse_thread/thread/5dea93b44dbbb628/1397c8971dd88e62?#1397c8971dd88e62 And modify your oauth.json to: "http://opensocial-gaune.googlecode.com/files/contacts.xml" : { "google" : { "consumer_secret" : "MIICdgIBADANBgkqhkiG9w0BAQEFAA SCAmAwggJcAgEAAoGBALRiMLAh9iimur8VA7qVvdqxevEuUkW4K+$ "consumer_key" : "weitu.googlepages.com", "key_type" : "RSA_PRIVATE" } } On Thu, Jul 3, 2008 at 12:43 PM, Gonzalo Aune <[EMAIL PROTECTED]> wrote: > Because your gadget doesnt have the OAuth declaration in the XML. > > G.- > > > On Thu, Jul 3, 2008 at 12:33 PM, xin zhang <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I tried oauth example oauth.xml and got the following error message: >> >> OAuth error: BAD_OAUTH_CONFIGURATION: gadget spec is missing >> /ModulePrefs/OAuth section org.apache.shindig.gadgets.GadgetException: >> gadget spec is missing /ModulePrefs/OAuth section at >> org.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore.getProviderInfo(GadgetOAuthTokenStore.java:201) >> at >> org.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore.getOAuthAccessor(GadgetOAuthTokenStore.java:181) >> at >> org.apache.shindig.gadgets.oauth.OAuthFetcher.lookupOAuthMetadata(OAuthFetcher.java:195) >> at >> org.apache.shindig.gadgets.oauth.OAuthFetcher.fetch(OAuthFetcher.java:230) >> at >> org.apache.shindig.gadgets.servlet.MakeRequestHandler.fetch(MakeRequestHandler.java:107) >> at >> org.apache.shindig.gadgets.servlet.MakeRequestServlet.doGet(MakeRequestServlet.java:55) >> at >> org.apache.shindig.gadgets.servlet.MakeRequestServlet.doPost(MakeRequestServlet.java:65) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) >> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) >> at >> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) >> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at >> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) >> at >> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) >> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >> at org.mortbay.jetty.Server.handle(Server.java:324) at >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at >> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) >> at >> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at >> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) >> at >> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) >> >> What am I missing? >> >> Thanks >> >> >> >> > > >

