I am developing a web application that involves Symfony2 and AngularJs. I have a question about the right way of authenticate users in the site.
I have built a function
You can check following repositories. It contains basic setup and configuration for Symfony + Angular (it also contains some bundles like FOSUser, NelmioApiDocBundle as well as simple Auth). Angular setup supports server side rendering. some ban work as default skeleton for Symfony + Angular projects https://github.com/vazgen/sa-standard-be and https://github.com/vazgen/sa-standard-fe