6 karma · joined Oct 21, 2008 (18y ago) · 5 submissions
comment 9y ago · link · parent
I'd usually google for a collection of the tools I'm looking at. To find that article I searched for "spa authentication with rails and devise"
Good luck with your side project :D
comment 9y ago · link · parent
When we first started we used a pretty vanilla version of Devise. The angular application just used session based auth. The easiest way to get the MVP happening was to have Rails generate the landing page of the SPA so we got sessions for 'free'. As we started to add more options for authenticating to the application to handle micro-services and our mobile application we took advantage of Warden/Devise and implemented a custom strategy for handling JWT authentication in addition to the regular session based strategy that comes out of the box.
The JWT authentication is Guardian compatible since we use Guardian to drive Paladin. It was a relatively straight forward addition with Warden/Devise to provide authentication based on either strategy which allows us to take advantage of these different schemes with minimal updates to our core application.
comment 10y ago · link · parent
http://blog.overstuffedgorilla.com/server-side-elm-with-phoe...