The best oAuth server provider I used id for symfony2 is FOSOAuthServerBundle. It will provide all Oauth functionality for you. The configuration is little bit tricky,
This blog will help you to configure the oAuth Server by using FOSOAuthServerBundle .