In https://issues.jboss.org/browse/AEROGEAR-858, I propose a change to the APIs of both Pipeline and Auth when creating new pipes or auth modules.From a design perspective I don't really understand how inverting the relationship between Pipes and Auth works. Authorization/Authentication tokens are part of the request. Pipes create/manage requests ergo they need to know about what auth is available. Authentication doesn't care what requests use it, it is just data.
What this change does is change the dependency from Pipeline depending on Auth to only the Auth rest adapter depending on Pipeline. So what does this get us?But a wider dependency on Pipes from Auth. Now when an auth is created it adds new behaviour to every instance of a pipe passed to it. This exact behaviour can't be done in Java, so Pipe in Java will still have the dependency on Auth.
- A narrower dependency between Auth and Pipeline
I'm not seeing how this requires Auth to be moved.
- Removal of AeroGear.ajax and instead build directly on top of jQuery.ajax which in turn gives us a much smaller file size (important for JS)
I would appreciate other thoughts on this. There are some issues with my current PR (https://github.com/aerogear/aerogear-js/pull/21) but I think I have solutions so once I update that PR I would appreciate feedback on that as well.
Don't thank me yet ;)
Thanks!
_______________________________________________ aerogear-dev mailing list aerogear-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-dev