Hey guys,
First time poster here, I was wondering what your thoughts were on the current best strategy to implement authentication to a rails powered backend API, from a JS MV* frontend? Specifically I plan to be using Backbone with Marionette.
I was planning to go the devise route, since it is established and easy to implement but have recently noticed that token_authenticable is deprecated.
The other direction I’m currently leaning, after reading all the relevant posts I could find was to separate it into two separate frontends, and after sign in from devise rendered login html page, have it re-direct to the second app, which would load a slightly different set of models/etc.
Does that approach make sense? Can I load different JS files to different routes from the asset pipeline without using something like RequireJS?
An links to examples of similar implementations would be greatly appreciated.
Thanks!
Eric