Reference implementation of OAuth2 client in Symfony2 project