You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by daviesd <da...@oclc.org> on 2012/11/16 14:42:30 UTC

OAuth fields required?

I was trying to use the GadgetSpec class to retrieve some metadata fields
from xml I passed into the constructor.  However, this failed with
³/OAuth/Service/Request is required² on the ModulePrefs OAuth section.  Are
these fields really required?  I thought they were optional and only used to
override any settings that might be in the oauth repository.  We¹ve
implemented a database store for these values.  We are thinking that it
might actually be nice to use the GadgetSpec class to validate an xml file
that is uploaded, but it would also be nice if it was validating against a
schema instead of code to do the work.  Has there been any thought given to
this?

Thanks,
doug

Re: OAuth fields required?

Posted by Ryan Baxter <rb...@apache.org>.
I believe it is required for OAuth 1.0a but not 2.0.

I don't think we have a schema defined for gadget specs...


On Fri, Nov 16, 2012 at 8:42 AM, daviesd <da...@oclc.org> wrote:

> I was trying to use the GadgetSpec class to retrieve some metadata fields
> from xml I passed into the constructor.  However, this failed with
> ³/OAuth/Service/Request is required² on the ModulePrefs OAuth section.  Are
> these fields really required?  I thought they were optional and only used
> to
> override any settings that might be in the oauth repository.  We¹ve
> implemented a database store for these values.  We are thinking that it
> might actually be nice to use the GadgetSpec class to validate an xml file
> that is uploaded, but it would also be nice if it was validating against a
> schema instead of code to do the work.  Has there been any thought given to
> this?
>
> Thanks,
> doug
>