unhosted / u36

Organization of our hosting team
0 stars 0 forks source link

NLnet milestone 8: New feature - Hood.ie integration #11

Closed michielbdejong closed 10 years ago

michielbdejong commented 10 years ago

8 New feature: Hood.ie integration

The "NoBackend" movement is rapidly gaining popularity among web developers, with Hood.ie currently being the most popular implementation of a so-called app-agnostic backend server. We will combine the power of unhosted web apps and Hoodie servers by defining a discovery and authentication procedure that allows the user of a Hoodie-based web app to connect to their own Hoodie instance instead of the default one.

Milestones: a) Hoodie integration (1.250 euro)

https://storage.5apps.com/michiel/public/shares/131122-1639-2013-08-019-mou-unhosted.pdf

michielbdejong commented 10 years ago

This also came up in a Twitter conversation between Basti and Jan Lehnardt

michielbdejong commented 10 years ago

from https://github.com/hoodiehq/hoodie.js/blob/00308a11aa1d2d4c4ae91ae30809c0a7acdd502c/src/hoodie/account.js#L989 it is clear that hoodie.js does not currently support cross-origin backends. you can specify the hoodie instance in the Hoodie constructor

hoodie-server may or may not support it, since on the one hand it has CORS headers but on the other hand it is not entirely clear to me how this works with the cookie, and i have yet to see a successful request to my test instance over cross-origin xhr. see next comment below

and then there is discovery - but since signup and signin happen over the API, a simple webfinger link with rel="hoodie" and href="http://23.253.161.152:6001" should probably do the trick.

michielbdejong commented 10 years ago

Initial attempts suggest this project is blocked by https://github.com/hoodiehq/hoodie-server/issues/267

michielbdejong commented 10 years ago

Milestone completed in https://github.com/hoodiehq/hoodie-server/pull/288 and https://github.com/hoodiehq/hoodie.js/pull/323; it works, although:

Will claim the nlnet milestone as soon as both PRs have been accepted upstream, or when they have been open without progress for one month (whichever comes first).

michielbdejong commented 10 years ago

Milestone claimed (PRs still in review stage)