I am building a new subproject in symfony2 with FOSUserBundle and FOSRestBundle. This subproject should be an backend for the complete project. I want to build another subproject, which consumes the api and build a front-end in desktop system browser. Another subproject will build front ends in html5 for tablet and smartphones. They will be packed with phonegap to act like native apps.
I am struggling around with stuff of User login an registration. I think about using oauth for this, so that Facebook, Google etc can be used for logging in an using it. Therefore the api will be protected with oauth. But how to build the rest api for registering and logging in? The other api functions the client consumes will have to pass user information so that the function can get access to user data, stored in the back end. Which bundles are available to use in this case? Are there some information how to build up such a system?