Hi Mark, Have you read/followed the instructions here: http://code.google.com/apis/gadgets/docs/oauth.html? I believe one of the steps is to register the service provider with Google. It's likely it will not work without that step.
Best, Dan On Jan 15, 9:39 am, Mark Paine <[email protected]> wrote: > Hi Dan, > > Quick clarification... > > Is 3-legged auth supported in the sandbox for 3rd party providers? > > If so, any ideas why a gadget which loads without error in the > sandbox, with code along these lines would never hit my provider > server with a request? > > <Require feature="opensocial-0.8" /> > <OAuth> > <Service name="myprovider"> > <Access url="https://www.myprovidername.com/oauth/access_token/" > method="GET" /> > <Request url="https://www.myprovidername.com/oauth/request_token/? > scope=http://www.myprovidername.com/oauth/" method="GET" /> > <Authorization url="https://www.myprovidername.com/oauth/ > authorize/?oauth_callback=http://oauth.gmodules.com/gadgets/ > oauthcallback" /> > </Service> > </OAuth> > ... > function fetchData() { > var params = {}; > url = "http://www.myprovidername.com/oauth/photo/?alt=json"; > params[gadgets.io.RequestParameters.CONTENT_TYPE] = > gadgets.io.ContentType.JSON; > params[gadgets.io.RequestParameters.AUTHORIZATION] = > gadgets.io.AuthorizationType.OAUTH; > params[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME] = > "myprovider"; > params[gadgets.io.RequestParameters.OAUTH_USE_TOKEN] = "always"; > params[gadgets.io.RequestParameters.METHOD] = > gadgets.io.MethodType.GET; > > gadgets.io.makeRequest(url, function (response) { > ... > > Thanks, > -Mark > > On Jan 12, 10:43 am, "Dan (Google Employee)" <[email protected]> > wrote: > > > Hi Guy, > > > The sandbox does support 3-leggedOAuththrough the makeRequest > > function, as outlined > > here:http://code.google.com/apis/gadgets/docs/oauth.html. > > However, 3-leggedOAuthas part of the REST/RPC protocol/client > > libraries is not yet supported on iGoogle. > > > Best, > > Dan > > > On Jan 11, 2:37 am, Guy Rutenberg <[email protected]> wrote: > > > > Hi, > > > > I'm working on an app that requires mapping a user to an iGoogle's > > > owner id (in the sandbox).OAuth's3-legged authentication seems to be > > > the most appropriate way to implement it. > > > > However, as I understand iGoogle doesn't support it yet. Does anybody > > > knows if and when iGoogle will support the 3-legged authentication > > > protocol? > > > > Thanks, > > > > Guy Rutenberg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
