>-----Original Message----- >From: Dennis Ju [mailto:[email protected]] >Sent: Monday, October 31, 2011 1:33 PM >To: [email protected] >Subject: Accessing "protected" gadgets? > >Hello, > >Is there a way for Shindig to access a gadget XML who's URL requires >authentication? We want to allow hosting private gadgets that require a >user to be logged in and authorized to view the gadget. I would imagine >that this has been a requirement for others using Shindig as well.
Yeah -- this has definitely come up and been discussed on the mailing list in the past. I don't recall if there was any resolution though -- have you seen any of those discussions? Would you mind trying to dig them up in the list archives and sending out some pointers to those discussions so we can all review them? >Right now, the problem is that DefaultGadgetSpecFactory.getGadgetSpec() >calls AbstractSpecFactory.fetchFromNetwork(), which in turn creates its own >HttpRequest object to retrieve the XML content. > >I'm thinking I'll need to use Guice to override getGadgetSpec() or >fetchFromNetwork()? Or is there a better way to do this? > >Any help would be appreciated. > >Thx! >Dennis
