[okfn-labs] PyBossa Apps
Daniel Lombraña González
teleyinex at gmail.com
Wed Aug 8 07:16:38 UTC 2012
Nice work Gregor! I'm still finishing some other stuff related to PyBossa,
and then I'll try your code :-)
Cheers,
Daniel
On Tue, Aug 7, 2012 at 4:20 PM, Gregor Aisch <gregor.aisch at okfn.org> wrote:
>
>
> Just wanted to mention that my little app framework for PyBossa has now
> moved to
>
> https://github.com/PyBossa/pybossa-apps
>
> Feel free to try it out and report issues.
>
> –G.
>
>
>
> Am 05.08.2012 um 21:03 schrieb Gregor Aisch:
>
>
> *Problem 1*: cookies are per default only accessible from the exact
> domain from which they were created, say "pybossa.com". However with a
> bit of hacking it is possible to allow subdomains to access the cookie to,
> by explicitly setting the cookie domain to ".pybossa.com". I managed to
> do this by overriding save_session, as shown here:
>
> http://librelist.com/browser//flask/2010/11/28/session-cookie-and-subdomain/#9dbf4e291401e4a664bc8851dddf8c15
>
> *Problem 2*: AJAX calls only send Cookies if the url you're calling is on
> the same domain as your calling script. That means that although the
> application on *apps.pybossa.com* can read the cookies, it won't send
> them back when making POST requests to *pybossa.com*.
> http://stackoverflow.com/a/5422323/1532965
>
> So, I think we need a smarter way of providing authentication for external
> PyBossa apps.
>
> Will create a ticket now..
>
> –Gregor
>
> Am 03.08.2012 um 16:02 schrieb Rufus Pollock:
>
> On 2 August 2012 12:58, Gregor Aisch <gregor.aisch at okfn.org> wrote:
>
>
> Btw, the one thing that I couldn't get working currently is authentication.
>
> Even though I put my pybossa-apps instance inside a sub-domain of the
>
> pybossa instance, PyBossa ignores the cookie and treats the taks runs as if
>
> there were submitted by an anonymous user.
>
>
> Not quite sure of context here. Do you have an issue filed for this?
> Obviously this does seem to be working on the main pybossa.com (at
> least it was when I last checked ...). For the cookie identification I
> thought we were using standard Flask components and nothing very
> custom ...
>
> Rufus
>
>
> _______________________________________________
> okfn-labs mailing list
> okfn-labs at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/okfn-labs
>
>
>
> _______________________________________________
> okfn-labs mailing list
> okfn-labs at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/okfn-labs
>
>
--
··························································································································································
http://github.com/teleyinex
http://www.flickr.com/photos/teleyinex
··························································································································································
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino PDF, HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.
··························································································································································
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/okfn-labs/attachments/20120808/951b3ad1/attachment-0002.html>
More information about the okfn-labs
mailing list