-
Notifications
You must be signed in to change notification settings - Fork 65
Programmatic API #49
Comments
I like this |
Good idea. |
Hey @katsanva since I believe this will generate a major release I think we need to discuss the details a bit more. Ooth is coupled to express, because it is coupled to passport.js which injects the user in the request and session. I think I need a better idea of where you want to make the decoupling cut. Could give some examples of
A note: the express app provided to ooth is used to
|
Hey, @nmaro Its all about to decouple oooh from express and HTTP protocol only. The idea is to make same API to HTTP one, like It may be the best way to re-use passport strategies without actual The |
Now every method registered with
For example with
If this doesn't satisfy all your use cases just let me know, I'll close this for now. |
Hi @nmaro. What about to have programmatic API for
ooth
alongside HTTP?That will allow creating
ooth
-based services that can communicate not only by HTTP, but any transporter (e.g WebSocket, RabbitMQ, NATS, etc) and with the power of any framework (e.g. seneca, moleculer, sails, koa, etc.).In this way, current HTTP API, which is now hard tied to express, may become an express router which uses programmatic API internally.
As far of now I can't find any way to integrate ooth with some existing code base than make
fetch
/request
toooth
's HTTP endpoint, and that looks like a pretty strange (and expensive in latency) solution.The text was updated successfully, but these errors were encountered: