Question

I developed a REST-ful web application using FOSRestBundle and I want to use Backbone.js for the frontend. I am wondering about the authentication using tokens. I know that OAuth is only for an exchange server to server but for the front-end of my application how do I manage it? I read a lot on the forums and I know there WSSE method but how do I integrate with Backbone.js?

Also, what would be the best setup (firewalls) so that eventually I can integrate OAuth application? How to manage all those authetication protocols?

Thank you in advance!

Was it helpful?

Solution

Create a normal login page with twig, then once you are successfully authenticated, redirect to a controller that renders a twig file containing backbone.js and any other client side resources, backbone can then take over from there as all your REST end points will be accessible if you have set up permissions correctly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top